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/command | |
| 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/command')
| -rw-r--r-- | Lib/distutils/command/build_ext.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py index c0eef62..2db53f1 100644 --- a/Lib/distutils/command/build_ext.py +++ b/Lib/distutils/command/build_ext.py @@ -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 |
