Issue #23605: Fix typo in an os.walk() comment
Thanks Ben Hoyt for the report.
This commit is contained in:
parent
81c6df5c0f
commit
5fdde71cce
|
@ -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…
Reference in New Issue