mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
Issue #23605: Fix typo in an os.walk() comment
Thanks Ben Hoyt for the report.
This commit is contained in:
parent
81c6df5c0f
commit
5fdde71cce
1 changed files with 1 additions and 1 deletions
|
@ -402,7 +402,7 @@ def walk(top, topdown=True, onerror=None, followlinks=False):
|
||||||
is_symlink = entry.is_symlink()
|
is_symlink = entry.is_symlink()
|
||||||
except OSError:
|
except OSError:
|
||||||
# If is_symlink() raises an OSError, consider that the
|
# If is_symlink() raises an OSError, consider that the
|
||||||
# entry is not a symbolik link, same behaviour than
|
# entry is not a symbolic link, same behaviour than
|
||||||
# os.path.islink().
|
# os.path.islink().
|
||||||
is_symlink = False
|
is_symlink = False
|
||||||
walk_into = not is_symlink
|
walk_into = not is_symlink
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue