From 3af07e9a78b9b4b5a4776dd8db01928a39c08784 Mon Sep 17 00:00:00 2001 From: Greg Ward Date: Sat, 22 Apr 2000 15:17:14 +0000 Subject: Sporadic, untested Python 1.5.1 compatibility changes. --- Lib/distutils/file_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]) -- cgit v0.12