Fix documentation typo for pathlib.Path.walk (GH-96301)

This commit is contained in:
Ansab Gillani 2022-08-27 02:21:40 +05:00 committed by GitHub
parent c3d591fd06
commit b462f143ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1038,7 +1038,7 @@ call fails (for example because the path doesn't exist).
# Delete everything reachable from the directory "top".
# CAUTION: This is dangerous! For example, if top == Path('/'),
# it could delete all of your files.
for root, dirs, files in top.walk(topdown=False):
for root, dirs, files in top.walk(top_down=False):
for name in files:
(root / name).unlink()
for name in dirs: