mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15:34 +00:00
Fix failure in error handler -- exc[-1] -> exc.args[-1].
This commit is contained in:
parent
44300950dc
commit
8c7461480b
1 changed files with 2 additions and 2 deletions
|
@ -76,8 +76,8 @@ def mkpath (name, mode=0o777, verbose=0, dry_run=0):
|
|||
os.mkdir(head)
|
||||
created_dirs.append(head)
|
||||
except OSError as exc:
|
||||
raise DistutilsFileError, \
|
||||
"could not create '%s': %s" % (head, exc[-1])
|
||||
raise DistutilsFileError(
|
||||
"could not create '%s': %s" % (head, exc.args[-1]))
|
||||
|
||||
_path_created[abs_head] = 1
|
||||
return created_dirs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue