summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/file_util.py
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2001-07-25 19:48:03 (GMT)
committerGreg Ward <gward@python.net>2001-07-25 19:48:03 (GMT)
commite628a2fa85ed2f94c6049f3ccb8d671052389548 (patch)
tree553b8946816c926d98070e2aa77d23e1ca61ff30 /Lib/distutils/file_util.py
parent41d7d58cc4c863b39bfad52f94fe613594597d2d (diff)
downloadcpython-e628a2fa85ed2f94c6049f3ccb8d671052389548.zip
cpython-e628a2fa85ed2f94c6049f3ccb8d671052389548.tar.gz
cpython-e628a2fa85ed2f94c6049f3ccb8d671052389548.tar.bz2
Don't "import *" from stat at all -- just import what's needed, and
do it back in copy_file() (not at module level).
Diffstat (limited to 'Lib/distutils/file_util.py')
-rw-r--r--Lib/distutils/file_util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/file_util.py b/Lib/distutils/file_util.py
index 39f6eea..a3767bb 100644
--- a/Lib/distutils/file_util.py
+++ b/Lib/distutils/file_util.py
@@ -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, \