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/mwerkscompiler.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/mwerkscompiler.py')
-rw-r--r-- | Lib/distutils/mwerkscompiler.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/distutils/mwerkscompiler.py b/Lib/distutils/mwerkscompiler.py index 25d48ae..130cd61 100644 --- a/Lib/distutils/mwerkscompiler.py +++ b/Lib/distutils/mwerkscompiler.py @@ -104,10 +104,10 @@ class MWerksCompiler (CCompiler) : # This is because we (usually) create the project in a subdirectory of # where we are now, and keeping the paths relative is too much work right # now. - sources = map(self._filename_to_abs, self.__sources) - include_dirs = map(self._filename_to_abs, self.__include_dirs) + sources = [self._filename_to_abs(s) for s in self.__sources] + include_dirs = [self._filename_to_abs(d) for d in self.__include_dirs] if objects: - objects = map(self._filename_to_abs, objects) + objects = [self._filename_to_abs(o) for o in objects] else: objects = [] if build_temp: |