Don't "import *" from stat at all -- just import what's needed, and
do it back in copy_file() (not at module level).
This commit is contained in:
parent
41d7d58cc4
commit
e628a2fa85
|
@ -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, \
|
||||
|
|
Loading…
Reference in New Issue