]> granicus.if.org Git - python/commitdiff
Be consistent with the functions in the posix/nt module: docstrings
authorFred Drake <fdrake@acm.org>
Tue, 2 Jul 2002 21:28:04 +0000 (21:28 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 2 Jul 2002 21:28:04 +0000 (21:28 +0000)
don't include a " -> None" for functions that have no return value.

Lib/os.py

index edffa479fcd373a1b2a182dc34884b443521a6eb..f7929b440dda4201234d8f1b7db70c25774b2c66 100644 (file)
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -198,7 +198,7 @@ sys.modules['os.path'] = path
 # (Inspired by Eric Raymond; the doc strings are mostly his)
 
 def makedirs(name, mode=0777):
-    """makedirs(path [, mode=0777]) -> None
+    """makedirs(path [, mode=0777])
 
     Super-mkdir; create a leaf directory and all intermediate ones.
     Works like mkdir, except that any intermediate path segment (not
@@ -214,7 +214,7 @@ def makedirs(name, mode=0777):
     mkdir(name, mode)
 
 def removedirs(name):
-    """removedirs(path) -> None
+    """removedirs(path)
 
     Super-rmdir; remove a leaf directory and empty all intermediate
     ones.  Works like rmdir except that, if the leaf directory is
@@ -236,7 +236,7 @@ def removedirs(name):
         head, tail = path.split(head)
 
 def renames(old, new):
-    """renames(old, new) -> None
+    """renames(old, new)
 
     Super-rename; create directories as necessary and delete any left
     empty.  Works like rename, except creation of any intermediate