mirror of
https://github.com/python/cpython.git
synced 2025-11-25 12:44:13 +00:00
removed sys.platform == 'mac' support in distutils.dist.parse_command_line and improved test coverage
This commit is contained in:
parent
50626db437
commit
016828d119
2 changed files with 39 additions and 25 deletions
|
|
@ -414,11 +414,6 @@ Common commands: (see '--help-commands' for more)
|
|||
# that allows the user to interactively specify the "command line".
|
||||
#
|
||||
toplevel_options = self._get_toplevel_options()
|
||||
if sys.platform == 'mac':
|
||||
import EasyDialogs
|
||||
cmdlist = self.get_command_list()
|
||||
self.script_args = EasyDialogs.GetArgv(
|
||||
toplevel_options + self.display_options, cmdlist)
|
||||
|
||||
# We have to parse the command line a bit at a time -- global
|
||||
# options, then the first command, then its options, and so on --
|
||||
|
|
@ -438,7 +433,6 @@ Common commands: (see '--help-commands' for more)
|
|||
# for display options we return immediately
|
||||
if self.handle_display_options(option_order):
|
||||
return
|
||||
|
||||
while args:
|
||||
args = self._parse_command_opts(parser, args)
|
||||
if args is None: # user asked for help (and got it)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue