Issue #23605: os.walk() doc now mentions shutil.rmtree() in the last example

This commit is contained in:
Victor Stinner 2015-03-10 13:31:47 +01:00
parent 101447b3fe
commit 47c41b4e4d
1 changed files with 3 additions and 2 deletions

View File

@ -2391,8 +2391,9 @@ features:
if 'CVS' in dirs:
dirs.remove('CVS') # don't visit CVS directories
In the next example, walking the tree bottom-up is essential: :func:`rmdir`
doesn't allow deleting a directory before the directory is empty::
In the next example (simple implementation of :func:`shutil.rmtree`),
walking the tree bottom-up is essential, :func:`rmdir` doesn't allow
deleting a directory before the directory is empty::
# Delete everything reachable from the directory named in "top",
# assuming there are no symbolic links.