mirror of
https://github.com/python/cpython.git
synced 2025-09-11 03:07:01 +00:00
Fix Issue2236: Distutils' mkpath implementation ignoring the "mode" parameter
This commit is contained in:
parent
ac00799d61
commit
9b86a69fc7
2 changed files with 8 additions and 1 deletions
|
@ -68,7 +68,7 @@ def mkpath(name, mode=0o777, verbose=1, dry_run=0):
|
|||
|
||||
if not dry_run:
|
||||
try:
|
||||
os.mkdir(head)
|
||||
os.mkdir(head, mode)
|
||||
created_dirs.append(head)
|
||||
except OSError as exc:
|
||||
raise DistutilsFileError(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue