summaryrefslogtreecommitdiffstats
path: root/Lib/os.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/os.py')
-rw-r--r--Lib/os.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/os.py b/Lib/os.py
index a49e7ce..e32cd6b 100644
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -369,7 +369,7 @@ def walk(top, topdown=True, onerror=None, followlinks=False):
# Note that scandir is global in this module due
# to earlier import-*.
scandir_it = scandir(top)
- entries = list(scandir(top))
+ entries = list(scandir_it)
except OSError as error:
if onerror is not None:
onerror(error)