diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2010-09-17 16:35:37 (GMT) |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2010-09-17 16:35:37 (GMT) |
commit | 9b86a69fc7ee51deadf59a562cdce41aa698ce9b (patch) | |
tree | 3ac06b7f30a9910c0546b56cdb1e7fbaf0de594b /Lib/distutils/dir_util.py | |
parent | ac00799d61351d8f468af00d6194287bc37aad75 (diff) | |
download | cpython-9b86a69fc7ee51deadf59a562cdce41aa698ce9b.zip cpython-9b86a69fc7ee51deadf59a562cdce41aa698ce9b.tar.gz cpython-9b86a69fc7ee51deadf59a562cdce41aa698ce9b.tar.bz2 |
Fix Issue2236: Distutils' mkpath implementation ignoring the "mode" parameter
Diffstat (limited to 'Lib/distutils/dir_util.py')
-rw-r--r-- | Lib/distutils/dir_util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/dir_util.py b/Lib/distutils/dir_util.py index 98e6252..54376e5 100644 --- a/Lib/distutils/dir_util.py +++ b/Lib/distutils/dir_util.py @@ -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( |