aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-03-05 14:35:50 +0100
committerEgor Tensin <Egor.Tensin@gmail.com>2023-03-05 14:35:50 +0100
commit1530182c4b449dccc44e54b4817a3984dad3ea6f (patch)
treebc1daddfb04c7d56312b699da82789514655337d
parentwritable_dirs: refactoring (diff)
downloadaudit-scripts-1530182c4b449dccc44e54b4817a3984dad3ea6f.tar.gz
audit-scripts-1530182c4b449dccc44e54b4817a3984dad3ea6f.zip
writable_dirs: Python 3.6 is quite old now
-rwxr-xr-xwritable_dirs.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/writable_dirs.py b/writable_dirs.py
index ed3ab89..8ec5216 100755
--- a/writable_dirs.py
+++ b/writable_dirs.py
@@ -180,9 +180,8 @@ def scandir(dir_path):
except (PermissionError, FileNotFoundError) as e:
logging.warning('%s', e)
return
- # On Python 3.6+:
- # with entry_it:
- yield from entry_it
+ with entry_it:
+ yield from entry_it
def enum_dirs(dir_path):