]> granicus.if.org Git - python/commitdiff
Sporadic, untested Python 1.5.1 compatibility changes.
authorGreg Ward <gward@python.net>
Sat, 22 Apr 2000 15:17:14 +0000 (15:17 +0000)
committerGreg Ward <gward@python.net>
Sat, 22 Apr 2000 15:17:14 +0000 (15:17 +0000)
Lib/distutils/file_util.py

index 91545abb18d3574033d8773d3de1f37a22fcdf13..32245109d533eeb82d4c2958808bd6f954667dd9 100644 (file)
@@ -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])