summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/file_util.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-01-06 21:13:42 (GMT)
committerGeorg Brandl <georg@python.org>2008-01-06 21:13:42 (GMT)
commitd11b68ab0834be4be76fca479cd4426eb45dfaec (patch)
treebc05f1c9ac1e0460d2f30531fcb31ab09084979e /Lib/distutils/file_util.py
parent7357c23ee72d687433452555018e9931159a2dfa (diff)
downloadcpython-d11b68ab0834be4be76fca479cd4426eb45dfaec.zip
cpython-d11b68ab0834be4be76fca479cd4426eb45dfaec.tar.gz
cpython-d11b68ab0834be4be76fca479cd4426eb45dfaec.tar.bz2
Fix more exception slicing.
Diffstat (limited to 'Lib/distutils/file_util.py')
-rw-r--r--Lib/distutils/file_util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/file_util.py b/Lib/distutils/file_util.py
index e29e90e..6919060 100644
--- a/Lib/distutils/file_util.py
+++ b/Lib/distutils/file_util.py
@@ -139,7 +139,7 @@ def copy_file(src, dst, preserve_mode=1, preserve_times=1, update=0,
macostools.copy(src, dst, 0, preserve_times)
except os.error as exc:
raise DistutilsFileError(
- "could not copy '%s' to '%s': %s" % (src, dst, exc[-1]))
+ "could not copy '%s' to '%s': %s" % (src, dst, exc.args[-1]))
# If linking (hard or symbolic), use the appropriate system call
# (Unix only, of course, but that's the caller's responsibility)