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

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