changeset 18830:fdb388f2df4e legacy-trunk

Don't "import *" from stat at all -- just import what's needed, and do it back in copy_file() (not at module level).
author Greg Ward <gward@python.net>
date Wed, 25 Jul 2001 19:48:03 +0000
parents 1bc1fdf1482b
children 132c4bfdba74
files Lib/distutils/file_util.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Lib/distutils/file_util.py	Wed Jul 25 16:18:19 2001 +0000
+++ b/Lib/distutils/file_util.py	Wed Jul 25 19:48:03 2001 +0000
@@ -8,7 +8,6 @@
 __revision__ = "$Id$"
 
 import os
-from stat import *
 from distutils.errors import DistutilsFileError
 
 
@@ -108,6 +107,7 @@
     # (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, \