aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/writable_dirs.py
diff options
context:
space:
mode:
Diffstat (limited to 'writable_dirs.py')
-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):