diff options
| author | Guido van Rossum <guido@python.org> | 2007-08-29 13:18:47 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2007-08-29 13:18:47 +0000 |
| commit | 767edf21398f72156adcea6a418eba9150d06a20 (patch) | |
| tree | 89bc482c5eb86f5415caff80b282ddb3344b3f34 | |
| parent | 04cd9c5fbf2d2bbdd8621c82fa07ac5347a45bf9 (diff) | |
| download | python-setuptools-git-767edf21398f72156adcea6a418eba9150d06a20.tar.gz | |
Fix failure in error handler -- exc[-1] -> exc.args[-1].
| -rw-r--r-- | dir_util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dir_util.py b/dir_util.py index a6c4416a..7dc1205c 100644 --- a/dir_util.py +++ b/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 |
