summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-03-10 12:31:47 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-03-10 12:31:47 (GMT)
commit47c41b4e4d7d9b6662fb0c3f82e088ea04192dac (patch)
treeeb25b58d6ca2b824b477e3f330bfb549b484fb44
parent101447b3feb7326011e9f805264b92a4c927ad49 (diff)
downloadcpython-47c41b4e4d7d9b6662fb0c3f82e088ea04192dac.zip
cpython-47c41b4e4d7d9b6662fb0c3f82e088ea04192dac.tar.gz
cpython-47c41b4e4d7d9b6662fb0c3f82e088ea04192dac.tar.bz2
Issue #23605: os.walk() doc now mentions shutil.rmtree() in the last example
-rw-r--r--Doc/library/os.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 98ee842..41efccd 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -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.