summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-08-29 13:18:47 (GMT)
committerGuido van Rossum <guido@python.org>2007-08-29 13:18:47 (GMT)
commit8c7461480b0bd1efa3bb51f15adec90c45d821c3 (patch)
tree84a9d6a66aee9fdd18109593d5ccae04d7da1b25 /Lib/distutils
parent44300950dc2ed13ec07d7077f8fbe8ba8cf22076 (diff)
downloadcpython-8c7461480b0bd1efa3bb51f15adec90c45d821c3.zip
cpython-8c7461480b0bd1efa3bb51f15adec90c45d821c3.tar.gz
cpython-8c7461480b0bd1efa3bb51f15adec90c45d821c3.tar.bz2
Fix failure in error handler -- exc[-1] -> exc.args[-1].
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/dir_util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/distutils/dir_util.py b/Lib/distutils/dir_util.py
index a6c4416..7dc1205 100644
--- a/Lib/distutils/dir_util.py
+++ b/Lib/distutils/dir_util.py
@@ -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