mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Some far-reaching naming changes:
* Command method 'find_peer()' -> 'get_finalized_command()' * Command method 'run_peer()' -> 'run_command()' Also deleted the 'get_command_option()' method from Command, and fixed the one place where it was used (in "bdist_dumb").
This commit is contained in:
parent
25bfd0e8d0
commit
4fb29e55f8
11 changed files with 59 additions and 78 deletions
|
@ -53,7 +53,7 @@ class bdist (Command):
|
|||
# temporary directories (eg. we'll probably have
|
||||
# "build/bdist.<plat>/dumb", "build/bdist.<plat>/rpm", etc.)
|
||||
if self.bdist_base is None:
|
||||
build_base = self.find_peer('build').build_base
|
||||
build_base = self.get_finalized_command('build').build_base
|
||||
plat = get_platform()
|
||||
self.bdist_base = os.path.join (build_base, 'bdist.' + plat)
|
||||
|
||||
|
@ -79,9 +79,9 @@ class bdist (Command):
|
|||
"invalid archive format '%s'" % self.format
|
||||
|
||||
if cmd_name not in self.no_format_option:
|
||||
sub_cmd = self.find_peer (cmd_name)
|
||||
sub_cmd = self.get_finalized_command (cmd_name)
|
||||
sub_cmd.format = self.format
|
||||
self.run_peer (cmd_name)
|
||||
self.run_command (cmd_name)
|
||||
|
||||
# run()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue