mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +00:00
Remove incorrect usages of map() in distutils.
Reported by Lisandro Dalcin.
This commit is contained in:
parent
9a2310d1b6
commit
61cb087359
6 changed files with 11 additions and 9 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue