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
bd2c4c6e
Commit
bd2c4c6e
authored
May 23, 2000
by
Greg Ward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use 'get_command_obj()' instead of 'find_command_obj()'.
parent
70c82d88
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Lib/distutils/cmd.py
Lib/distutils/cmd.py
+3
-3
Lib/distutils/command/bdist_dumb.py
Lib/distutils/command/bdist_dumb.py
+1
-1
No files found.
Lib/distutils/cmd.py
View file @
bd2c4c6e
...
...
@@ -183,7 +183,7 @@ class Command:
# Option_pairs: list of (src_option, dst_option) tuples
src_cmd_obj
=
self
.
distribution
.
find
_command_obj
(
src_cmd
)
src_cmd_obj
=
self
.
distribution
.
get
_command_obj
(
src_cmd
)
src_cmd_obj
.
ensure_ready
()
for
(
src_option
,
dst_option
)
in
option_pairs
:
if
getattr
(
self
,
dst_option
)
is
None
:
...
...
@@ -192,11 +192,11 @@ class Command:
def
find_peer
(
self
,
command
,
create
=
1
):
"""Wrapper around Distribution's '
find
_command_obj()' method:
"""Wrapper around Distribution's '
get
_command_obj()' method:
find (create if necessary and 'create' is true) the command
object for 'command'.."""
cmd_obj
=
self
.
distribution
.
find
_command_obj
(
command
,
create
)
cmd_obj
=
self
.
distribution
.
get
_command_obj
(
command
,
create
)
cmd_obj
.
ensure_ready
()
return
cmd_obj
...
...
Lib/distutils/command/bdist_dumb.py
View file @
bd2c4c6e
...
...
@@ -63,7 +63,7 @@ class bdist_dumb (Command):
# command object that has *not* been finalized, so we can set
# options on it! (The option we set, 'root', is so that we can do
# a proper "fake install" using this install command object.)
install
=
self
.
distribution
.
find
_command_obj
(
'install'
)
install
=
self
.
distribution
.
get
_command_obj
(
'install'
)
install
.
root
=
self
.
bdist_dir
self
.
announce
(
"installing to %s"
%
self
.
bdist_dir
)
...
...
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