changeset: 94924:50e32059a404 branch: 3.4 parent: 94918:54d9c3be8f50 user: Victor Stinner date: Tue Mar 10 13:31:47 2015 +0100 files: Doc/library/os.rst description: Issue #23605: os.walk() doc now mentions shutil.rmtree() in the last example diff -r 54d9c3be8f50 -r 50e32059a404 Doc/library/os.rst --- a/Doc/library/os.rst Mon Mar 09 10:37:50 2015 -0400 +++ b/Doc/library/os.rst Tue Mar 10 13:31:47 2015 +0100 @@ -2391,8 +2391,9 @@ 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.