]> granicus.if.org Git - python/commitdiff
Don't "import *" from stat at all -- just import what's needed, and
authorGreg Ward <gward@python.net>
Wed, 25 Jul 2001 19:48:03 +0000 (19:48 +0000)
committerGreg Ward <gward@python.net>
Wed, 25 Jul 2001 19:48:03 +0000 (19:48 +0000)
do it back in copy_file() (not at module level).

Lib/distutils/file_util.py

index 39f6eea28964ae07a2e35b77ab7d7d7fa97bd59a..a3767bbd9364b2c080b9bc7575dc032279f103f6 100644 (file)
@@ -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, \