mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-05 14:34:55 +00:00
[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:
parent
f861516179
commit
a1ba7527de
@ -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)
|
||||
|
@ -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:
|
||||
|
@ -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__ = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user