mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Oops! Don't call 'ensure_ready()' in 'Distribution.find_command_obj()' --
that broke parsing command-line options. Instead call it in 'Command.find_peer()', which is why I added it to 'find_command_obj()' in the first place.
This commit is contained in:
parent
11fc7e447c
commit
89ccb984f0
1 changed files with 3 additions and 2 deletions
|
@ -506,7 +506,6 @@ class Distribution:
|
|||
cmd_obj = self.command_obj.get (command)
|
||||
if not cmd_obj and create:
|
||||
cmd_obj = self.create_command_obj (command)
|
||||
cmd_obj.ensure_ready ()
|
||||
self.command_obj[command] = cmd_obj
|
||||
|
||||
return cmd_obj
|
||||
|
@ -873,7 +872,9 @@ class Command:
|
|||
find (create if necessary and 'create' is true) the command
|
||||
object for 'command'.."""
|
||||
|
||||
return self.distribution.find_command_obj (command, create)
|
||||
cmd_obj = self.distribution.find_command_obj (command, create)
|
||||
cmd_obj.ensure_ready ()
|
||||
return cmd_obj
|
||||
|
||||
|
||||
def get_peer_option (self, command, option):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue