Commit 9dad3ab6 authored by Greg Ward's avatar Greg Ward

Don't "import *" from stat at all -- just import what's needed, and

do it back in copy_file() (not at module level).
parent cfca016e
......@@ -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, \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment