mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +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
|
|
@ -85,13 +85,13 @@ class FileList:
|
|||
if len(words) < 2:
|
||||
raise DistutilsTemplateError(
|
||||
"'%s' expects <pattern1> <pattern2> ..." % action)
|
||||
patterns = map(convert_path, words[1:])
|
||||
patterns = [convert_path(w) for w in words[1:]]
|
||||
elif action in ('recursive-include', 'recursive-exclude'):
|
||||
if len(words) < 3:
|
||||
raise DistutilsTemplateError(
|
||||
"'%s' expects <dir> <pattern1> <pattern2> ..." % action)
|
||||
dir = convert_path(words[1])
|
||||
patterns = map(convert_path, words[2:])
|
||||
patterns = [convert_path(w) for w in words[2:]]
|
||||
elif action in ('graft', 'prune'):
|
||||
if len(words) != 2:
|
||||
raise DistutilsTemplateError(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue