]> granicus.if.org Git - python/commitdiff
SF#1343671.
authorFredrik Lundh <fredrik@pythonware.com>
Sat, 12 Nov 2005 15:55:04 +0000 (15:55 +0000)
committerFredrik Lundh <fredrik@pythonware.com>
Sat, 12 Nov 2005 15:55:04 +0000 (15:55 +0000)
The removedirs function removes empty directories, it doesn't
empty them.

Lib/os.py

index bf1b086383338ff740bf7405bb9b25ab004ce1a5..7c49ba4b6a4d061ee294492492aa0527b28959f6 100644 (file)
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -168,7 +168,7 @@ def makedirs(name, mode=0777):
 def removedirs(name):
     """removedirs(path)
 
-    Super-rmdir; remove a leaf directory and empty all intermediate
+    Super-rmdir; remove a leaf directory and all empty intermediate
     ones.  Works like rmdir except that, if the leaf directory is
     successfully removed, directories corresponding to rightmost path
     segments will be pruned away until either the whole path is