]> granicus.if.org Git - python/commitdiff
move "from stat import *" to module level
authorJeremy Hylton <jeremy@alum.mit.edu>
Wed, 31 Jan 2001 20:07:17 +0000 (20:07 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Wed, 31 Jan 2001 20:07:17 +0000 (20:07 +0000)
Lib/distutils/file_util.py

index a9e12ce3f30a3999e642555915e5938b578b9b17..39f6eea28964ae07a2e35b77ab7d7d7fa97bd59a 100644 (file)
@@ -8,6 +8,7 @@ Utility functions for operating on single files.
 __revision__ = "$Id$"
 
 import os
+from stat import *
 from distutils.errors import DistutilsFileError
 
 
@@ -106,7 +107,6 @@ def copy_file (src, dst,
     # changing it (ie. it's not already a hard/soft link to src OR
     # (not update) and (src newer than dst).
 
-    from stat import *
     from distutils.dep_util import newer
 
     if not os.path.isfile(src):