summaryrefslogtreecommitdiff
path: root/Lib/os.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-03-24 13:27:42 +0200
committerGitHub <noreply@github.com>2017-03-24 13:27:42 +0200
commite304e33c16e060932d1e2cc8a030d42b02b429b5 (patch)
treed6c763564bfa27d2e4069a980296e90c8f71f31f /Lib/os.py
parent5619ab2db3a6c62ffaa55e8826cf67b7459fc484 (diff)
downloadcpython-git-e304e33c16e060932d1e2cc8a030d42b02b429b5.tar.gz
bpo-19930: The mode argument of os.makedirs() no longer affects the file (#799)
permission bits of newly-created intermediate-level directories.
Diffstat (limited to 'Lib/os.py')
-rw-r--r--Lib/os.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/os.py b/Lib/os.py
index 18ec124b29..70857c7e78 100644
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -207,7 +207,7 @@ def makedirs(name, mode=0o777, exist_ok=False):
head, tail = path.split(head)
if head and tail and not path.exists(head):
try:
- makedirs(head, mode, exist_ok)
+ makedirs(head, exist_ok=exist_ok)
except FileExistsError:
# Defeats race condition when another thread created the path
pass