diff options
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-07-26 20:09:45 (GMT) |
---|---|---|
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-07-26 20:09:45 (GMT) |
commit | 61cb0873591f9c43c1e10fcbe611c43f943c7c90 (patch) | |
tree | fa2cf90f0051355baafb184641a1385dafcc1a7e /Lib/distutils/dist.py | |
parent | 9a2310d1b6b80bae072892de04464d23b1e88881 (diff) | |
download | cpython-61cb0873591f9c43c1e10fcbe611c43f943c7c90.zip cpython-61cb0873591f9c43c1e10fcbe611c43f943c7c90.tar.gz cpython-61cb0873591f9c43c1e10fcbe611c43f943c7c90.tar.bz2 |
Remove incorrect usages of map() in distutils.
Reported by Lisandro Dalcin.
Diffstat (limited to 'Lib/distutils/dist.py')
-rw-r--r-- | Lib/distutils/dist.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/distutils/dist.py b/Lib/distutils/dist.py index ddde909..8bcb88c 100644 --- a/Lib/distutils/dist.py +++ b/Lib/distutils/dist.py @@ -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: |