Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1bd99607
Commit
1bd99607
authored
Aug 13, 2000
by
Greg Ward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix references to functions formerly imported from 'util'.
parent
e9cd6788
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
20 deletions
+23
-20
Lib/distutils/cmd.py
Lib/distutils/cmd.py
+23
-20
No files found.
Lib/distutils/cmd.py
View file @
1bd99607
...
@@ -12,7 +12,7 @@ __revision__ = "$Id$"
...
@@ -12,7 +12,7 @@ __revision__ = "$Id$"
import
sys
,
os
,
string
,
re
import
sys
,
os
,
string
,
re
from
types
import
*
from
types
import
*
from
distutils.errors
import
*
from
distutils.errors
import
*
from
distutils
import
util
from
distutils
import
util
,
dir_util
,
file_util
,
archive_util
,
dep_util
class
Command
:
class
Command
:
...
@@ -322,7 +322,7 @@ class Command:
...
@@ -322,7 +322,7 @@ class Command:
def
mkpath
(
self
,
name
,
mode
=
0777
):
def
mkpath
(
self
,
name
,
mode
=
0777
):
util
.
mkpath
(
name
,
mode
,
dir_util
.
mkpath
(
name
,
mode
,
self
.
verbose
,
self
.
dry_run
)
self
.
verbose
,
self
.
dry_run
)
...
@@ -332,7 +332,8 @@ class Command:
...
@@ -332,7 +332,8 @@ class Command:
former two default to whatever is in the Distribution object, and
former two default to whatever is in the Distribution object, and
the latter defaults to false for commands that don't define it.)"""
the latter defaults to false for commands that don't define it.)"""
return
util
.
copy_file
(
infile
,
outfile
,
return
file_util
.
copy_file
(
infile
,
outfile
,
preserve_mode
,
preserve_times
,
preserve_mode
,
preserve_times
,
not
self
.
force
,
not
self
.
force
,
link
,
link
,
...
@@ -346,7 +347,8 @@ class Command:
...
@@ -346,7 +347,8 @@ class Command:
"""Copy an entire directory tree respecting verbose, dry-run,
"""Copy an entire directory tree respecting verbose, dry-run,
and force flags.
and force flags.
"""
"""
return
util
.
copy_tree
(
infile
,
outfile
,
return
dir_util
.
copy_tree
(
infile
,
outfile
,
preserve_mode
,
preserve_times
,
preserve_symlinks
,
preserve_mode
,
preserve_times
,
preserve_symlinks
,
not
self
.
force
,
not
self
.
force
,
self
.
verbose
>=
level
,
self
.
verbose
>=
level
,
...
@@ -355,7 +357,7 @@ class Command:
...
@@ -355,7 +357,7 @@ class Command:
def
move_file
(
self
,
src
,
dst
,
level
=
1
):
def
move_file
(
self
,
src
,
dst
,
level
=
1
):
"""Move a file respecting verbose and dry-run flags."""
"""Move a file respecting verbose and dry-run flags."""
return
util
.
move_file
(
src
,
dst
,
return
file_
util
.
move_file
(
src
,
dst
,
self
.
verbose
>=
level
,
self
.
verbose
>=
level
,
self
.
dry_run
)
self
.
dry_run
)
...
@@ -370,7 +372,8 @@ class Command:
...
@@ -370,7 +372,8 @@ class Command:
def
make_archive
(
self
,
base_name
,
format
,
def
make_archive
(
self
,
base_name
,
format
,
root_dir
=
None
,
base_dir
=
None
):
root_dir
=
None
,
base_dir
=
None
):
return
util
.
make_archive
(
base_name
,
format
,
root_dir
,
base_dir
,
return
archive_util
.
make_archive
(
base_name
,
format
,
root_dir
,
base_dir
,
self
.
verbose
,
self
.
dry_run
)
self
.
verbose
,
self
.
dry_run
)
...
@@ -401,7 +404,7 @@ class Command:
...
@@ -401,7 +404,7 @@ class Command:
# If 'outfile' must be regenerated (either because it doesn't
# If 'outfile' must be regenerated (either because it doesn't
# exist, is out-of-date, or the 'force' flag is true) then
# exist, is out-of-date, or the 'force' flag is true) then
# perform the action that presumably regenerates it
# perform the action that presumably regenerates it
if
self
.
force
or
util
.
newer_group
(
infiles
,
outfile
):
if
self
.
force
or
dep_
util
.
newer_group
(
infiles
,
outfile
):
self
.
execute
(
func
,
args
,
exec_msg
,
level
)
self
.
execute
(
func
,
args
,
exec_msg
,
level
)
# Otherwise, print the "skip" message
# Otherwise, print the "skip" message
...
...
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