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:
Greg Ward 2001-07-25 19:48:03 +00:00
parent 41d7d58cc4
commit e628a2fa85
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,6 @@ Utility functions for operating on single files.
__revision__ = "$Id$" __revision__ = "$Id$"
import os import os
from stat import *
from distutils.errors import DistutilsFileError from distutils.errors import DistutilsFileError
@ -108,6 +107,7 @@ def copy_file (src, dst,
# (not update) and (src newer than dst). # (not update) and (src newer than dst).
from distutils.dep_util import newer from distutils.dep_util import newer
from stat import ST_ATIME, ST_MTIME, ST_MODE, S_IMODE
if not os.path.isfile(src): if not os.path.isfile(src):
raise DistutilsFileError, \ raise DistutilsFileError, \