diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-03-05 14:35:50 +0100 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-03-05 14:35:50 +0100 |
commit | 1530182c4b449dccc44e54b4817a3984dad3ea6f (patch) | |
tree | bc1daddfb04c7d56312b699da82789514655337d | |
parent | writable_dirs: refactoring (diff) | |
download | audit-scripts-1530182c4b449dccc44e54b4817a3984dad3ea6f.tar.gz audit-scripts-1530182c4b449dccc44e54b4817a3984dad3ea6f.zip |
writable_dirs: Python 3.6 is quite old now
-rwxr-xr-x | writable_dirs.py | 5 |
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): |