Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e628a2f

Browse files
committed
Don't "import *" from stat at all -- just import what's needed, and
do it back in copy_file() (not at module level).
1 parent 41d7d58 commit e628a2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/distutils/file_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
__revision__ = "$Id$"
99

1010
import os
11-
from stat import *
1211
from distutils.errors import DistutilsFileError
1312

1413

@@ -108,6 +107,7 @@ def copy_file (src, dst,
108107
# (not update) and (src newer than dst).
109108

110109
from distutils.dep_util import newer
110+
from stat import ST_ATIME, ST_MTIME, ST_MODE, S_IMODE
111111

112112
if not os.path.isfile(src):
113113
raise DistutilsFileError, \

0 commit comments

Comments
 (0)