@@ -1143,25 +1143,25 @@ Files and Directories
11431143 Availability: Unix, Windows.
11441144
11451145
1146- .. function :: makedirs(path[ , mode][ , exist_ok=False] )
1146+ .. function :: makedirs(path, mode=0o777 , exist_ok=False)
11471147
11481148 .. index ::
11491149 single: directory; creating
11501150 single: UNC paths; and os.makedirs()
11511151
11521152 Recursive directory creation function. Like :func: `mkdir `, but makes all
11531153 intermediate-level directories needed to contain the leaf directory. If
1154- the target directory with the same mode as we specified already exists,
1154+ the target directory with the same mode as specified already exists,
11551155 raises an :exc: `OSError ` exception if *exist_ok * is False, otherwise no
11561156 exception is raised. If the directory cannot be created in other cases,
11571157 raises an :exc: `OSError ` exception. The default *mode * is ``0o777 `` (octal).
1158- On some systems, *mode * is ignored. Where it is used, the current umask
1158+ On some systems, *mode * is ignored. Where it is used, the current umask
11591159 value is first masked out.
11601160
11611161 .. note ::
11621162
1163- :func: `makedirs ` will become confused if the path elements to create include
1164- :data: `os. pardir `.
1163+ :func: `makedirs ` will become confused if the path elements to create
1164+ include :data: `pardir `.
11651165
11661166 This function handles UNC paths correctly.
11671167
0 commit comments