summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/file_util.py
diff options
context:
space:
mode:
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 91545ab..3224510 100644
--- a/Lib/distutils/file_util.py
+++ b/Lib/distutils/file_util.py
@@ -141,7 +141,7 @@ def copy_file (src, dst,
import macostools
try:
macostools.copy (src, dst, 0, preserve_times)
- except OSError, exc:
+ except os.error, exc:
raise DistutilsFileError, \
"could not copy '%s' to '%s': %s" % (src, dst, exc[-1])