summaryrefslogtreecommitdiffstats
path: root/Doc/library/os.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-12-02 09:06:12 (GMT)
committerGeorg Brandl <georg@python.org>2010-12-02 09:06:12 (GMT)
commitc1673681fdf9bbf14ec8fa7df0624e76266b98e9 (patch)
tree5823318928f008512035ff7e58b37792e10296a5 /Doc/library/os.rst
parent5a22b651173f142a600625a036fcf36484ade237 (diff)
downloadcpython-c1673681fdf9bbf14ec8fa7df0624e76266b98e9.zip
cpython-c1673681fdf9bbf14ec8fa7df0624e76266b98e9.tar.gz
cpython-c1673681fdf9bbf14ec8fa7df0624e76266b98e9.tar.bz2
Fix-up documentation of makedirs().
Diffstat (limited to 'Doc/library/os.rst')
-rw-r--r--Doc/library/os.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 5d9a170..46a6f6e 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -1143,7 +1143,7 @@ Files and Directories
Availability: Unix, Windows.
-.. function:: makedirs(path[, mode][, exist_ok=False])
+.. function:: makedirs(path, mode=0o777, exist_ok=False)
.. index::
single: directory; creating
@@ -1151,17 +1151,17 @@ Files and Directories
Recursive directory creation function. Like :func:`mkdir`, but makes all
intermediate-level directories needed to contain the leaf directory. If
- the target directory with the same mode as we specified already exists,
+ the target directory with the same mode as specified already exists,
raises an :exc:`OSError` exception if *exist_ok* is False, otherwise no
exception is raised. If the directory cannot be created in other cases,
raises an :exc:`OSError` exception. The default *mode* is ``0o777`` (octal).
- On some systems, *mode* is ignored. Where it is used, the current umask
+ On some systems, *mode* is ignored. Where it is used, the current umask
value is first masked out.
.. note::
- :func:`makedirs` will become confused if the path elements to create include
- :data:`os.pardir`.
+ :func:`makedirs` will become confused if the path elements to create
+ include :data:`pardir`.
This function handles UNC paths correctly.