diff options
author | Ansab Gillani <56605828+ansabgillani@users.noreply.github.com> | 2022-08-26 21:21:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-26 21:21:40 (GMT) |
commit | b462f143ff9592179d82680d0156eedb74705ed4 (patch) | |
tree | 6d4c7e239d02301798bac78701bf238f8947a43c | |
parent | c3d591fd0699605c8253beda2372114052a7bdba (diff) | |
download | cpython-b462f143ff9592179d82680d0156eedb74705ed4.zip cpython-b462f143ff9592179d82680d0156eedb74705ed4.tar.gz cpython-b462f143ff9592179d82680d0156eedb74705ed4.tar.bz2 |
Fix documentation typo for pathlib.Path.walk (GH-96301)
-rw-r--r-- | Doc/library/pathlib.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index f7d7745..1375ce1 100644 --- a/Doc/library/pathlib.rst +++ b/Doc/library/pathlib.rst @@ -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: |