[lit] Use list comprehensions instead of map().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187918 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar 2013-08-07 21:43:17 +00:00
parent f861516179
commit a1ba7527de
3 changed files with 4 additions and 3 deletions

View File

@ -32,7 +32,7 @@ class LitConfig:
# The name of the test runner.
self.progname = progname
# The items to add to the PATH environment variable.
self.path = list(map(str, path))
self.path = list([str(p) for p in path])
self.quiet = bool(quiet)
self.useValgrind = bool(useValgrind)
self.valgrindLeakCheck = bool(valgrindLeakCheck)

View File

@ -416,7 +416,8 @@ def parseIntegratedTestScript(test, normalize_slashes=False,
# Strip the trailing newline and any extra whitespace.
return ln.strip()
script = map(processLine, script)
script = [processLine(ln)
for ln in script]
# Verify the script contains a run line.
if not script:

View File

@ -6,6 +6,6 @@ from .main import main
__author__ = 'Daniel Dunbar'
__email__ = 'daniel@zuster.org'
__versioninfo__ = (0, 3, 0)
__version__ = '.'.join(map(str, __versioninfo__)) + 'dev'
__version__ = '.'.join(str(v) for v in __versioninfo__) + 'dev'
__all__ = []