Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
8b463933
Commit
8b463933
authored
Mar 20, 2014
by
Zachary Ware
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix parameter name in docs for os.makedirs and os.removedirs.
Pointed out by Colin Davis on docs@.
parent
e0cf3e36
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Doc/library/os.rst
Doc/library/os.rst
+2
-2
Lib/os.py
Lib/os.py
+2
-2
No files found.
Doc/library/os.rst
View file @
8b463933
...
...
@@ -1607,7 +1607,7 @@ features:
The *dir_fd* argument.
.. function:: makedirs(
path
, mode=0o777, exist_ok=False)
.. function:: makedirs(
name
, mode=0o777, exist_ok=False)
.. index::
single: directory; creating
...
...
@@ -1763,7 +1763,7 @@ features:
The *dir_fd* argument.
.. function:: removedirs(
path
)
.. function:: removedirs(
name
)
.. index:: single: directory; deleting
...
...
Lib/os.py
View file @
8b463933
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment