Commit e14c07e4 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Fixed a bug in os.walk() with bytes path on Windows caused by merging fixes

for issues #25995 and #25911.
parent 205e75bb
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment