Remove incorrect usages of map() in distutils.

Reported by Lisandro Dalcin.
This commit is contained in:
Amaury Forgeot d'Arc 2008-07-26 20:09:45 +00:00
parent 9a2310d1b6
commit 61cb087359
6 changed files with 11 additions and 9 deletions

View file

@ -864,7 +864,8 @@ Common commands: (see '--help-commands' for more)
for (option, (source, value)) in option_dict.items():
if DEBUG: print(" %s = %s (from %s)" % (option, value, source))
try:
bool_opts = map(translate_longopt, command_obj.boolean_options)
bool_opts = [translate_longopt(o)
for o in command_obj.boolean_options]
except AttributeError:
bool_opts = []
try: