[tor-commits] [sbws/master] Don't condition returning a file name on os.path.splitext existing

pastly at torproject.org pastly at torproject.org
Thu Aug 9 14:21:19 UTC 2018


commit 7866642820881fabe5c4758856a7eb0c4cb738ee
Author: Matt Traudt <sirmatt at 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
 
 





More information about the tor-commits mailing list