removed sys.platform == 'mac' support in distutils.dist.parse_command_line and improved test coverage

This commit is contained in:
Tarek Ziadé 2009-05-17 10:44:12 +00:00
parent 50626db437
commit 016828d119
2 changed files with 39 additions and 25 deletions

View file

@ -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)