From 1530182c4b449dccc44e54b4817a3984dad3ea6f Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 5 Mar 2023 14:35:50 +0100 Subject: writable_dirs: Python 3.6 is quite old now --- writable_dirs.py | 5 ++--- 1 file 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): -- cgit v1.2.3