mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix parameter name in docs for os.makedirs and os.removedirs.
Pointed out by Colin Davis on docs@.
This commit is contained in:
parent
d852e997f4
commit
a22ae21db6
2 changed files with 4 additions and 4 deletions
|
@ -216,7 +216,7 @@ def _get_masked_mode(mode):
|
|||
# (Inspired by Eric Raymond; the doc strings are mostly his)
|
||||
|
||||
def makedirs(name, mode=0o777, exist_ok=False):
|
||||
"""makedirs(path [, mode=0o777][, exist_ok=False])
|
||||
"""makedirs(name [, mode=0o777][, exist_ok=False])
|
||||
|
||||
Super-mkdir; create a leaf directory and all intermediate ones.
|
||||
Works like mkdir, except that any intermediate path segment (not
|
||||
|
@ -260,7 +260,7 @@ def makedirs(name, mode=0o777, exist_ok=False):
|
|||
raise
|
||||
|
||||
def removedirs(name):
|
||||
"""removedirs(path)
|
||||
"""removedirs(name)
|
||||
|
||||
Super-rmdir; remove a leaf directory and all empty intermediate
|
||||
ones. Works like rmdir except that, if the leaf directory is
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue