commit 7866642820881fabe5c4758856a7eb0c4cb738ee Author: Matt Traudt sirmatt@ksu.edu Date: Wed Aug 1 19:23:38 2018 -0400
Don't condition returning a file name on os.path.splitext existing --- sbws/core/cleanup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sbws/core/cleanup.py b/sbws/core/cleanup.py index fe529a7..a3e8cc6 100644 --- a/sbws/core/cleanup.py +++ b/sbws/core/cleanup.py @@ -60,7 +60,7 @@ def _get_files_mtime_older_than(dname, days_delta, extensions): # of the file. filedt = unixts_to_dt_obj( os.stat(fname, follow_symlinks=False).st_mtime) - if filedt < oldest_day and os.path.splitext: + if filedt < oldest_day: yield fname
tor-commits@lists.torproject.org