mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +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
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue