mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +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
|
@ -244,7 +244,7 @@ class build_ext(Command):
|
|||
|
||||
if self.define:
|
||||
defines = self.define.split(',')
|
||||
self.define = map(lambda symbol: (symbol, '1'), defines)
|
||||
self.define = [(symbol, '1') for symbol in defines]
|
||||
|
||||
# The option for macros to undefine is also a string from the
|
||||
# option parsing, but has to be a list. Multiple symbols can also
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue