Commit 767edf21 authored by Guido van Rossum's avatar Guido van Rossum

Fix failure in error handler -- exc[-1] -> exc.args[-1].

parent 04cd9c5f
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment