mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fixed a bug in os.walk() with bytes path on Windows caused by merging fixes
for issues #25995 and #25911.
This commit is contained in:
parent
205e75bb62
commit
e14c07e4e4
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue