From e628a2fa85ed2f94c6049f3ccb8d671052389548 Mon Sep 17 00:00:00 2001 From: Greg Ward Date: Wed, 25 Jul 2001 19:48:03 +0000 Subject: [PATCH] Don't "import *" from stat at all -- just import what's needed, and do it back in copy_file() (not at module level). --- 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 39f6eea2896..a3767bbd936 100644 --- a/Lib/distutils/file_util.py +++ b/Lib/distutils/file_util.py @@ -8,7 +8,6 @@ Utility functions for operating on single files. __revision__ = "$Id$" import os -from stat import * from distutils.errors import DistutilsFileError @@ -108,6 +107,7 @@ def copy_file (src, dst, # (not update) and (src newer than dst). from distutils.dep_util import newer + from stat import ST_ATIME, ST_MTIME, ST_MODE, S_IMODE if not os.path.isfile(src): raise DistutilsFileError, \