Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
9dad3ab6
Commit
9dad3ab6
authored
Jul 25, 2001
by
Greg Ward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
file_util.py
file_util.py
+1
-1
No files found.
file_util.py
View file @
9dad3ab6
...
...
@@ -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
,
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment