diff options
author | Daniel Dunbar <daniel@zuster.org> | 2013-08-07 21:43:17 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2013-08-07 21:43:17 +0000 |
commit | f6dc230befe410e40d9686a6149ea71ab70cf8f7 (patch) | |
tree | c0cade3e649a2e5639f10dfe5ef1068d4a411f04 /llvm/utils/lit | |
parent | 1047d9a412c2fd5eb5da7bcc5099daf60a2ea366 (diff) | |
download | bcm5719-llvm-f6dc230befe410e40d9686a6149ea71ab70cf8f7.tar.gz bcm5719-llvm-f6dc230befe410e40d9686a6149ea71ab70cf8f7.zip |
[lit] Use list comprehensions instead of map().
llvm-svn: 187918
Diffstat (limited to 'llvm/utils/lit')
-rw-r--r-- | llvm/utils/lit/lit/LitConfig.py | 2 | ||||
-rw-r--r-- | llvm/utils/lit/lit/TestRunner.py | 3 | ||||
-rw-r--r-- | llvm/utils/lit/lit/__init__.py | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/llvm/utils/lit/lit/LitConfig.py b/llvm/utils/lit/lit/LitConfig.py index bd7a6031228..9a5ff9973ce 100644 --- a/llvm/utils/lit/lit/LitConfig.py +++ b/llvm/utils/lit/lit/LitConfig.py @@ -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) diff --git a/llvm/utils/lit/lit/TestRunner.py b/llvm/utils/lit/lit/TestRunner.py index 989a992ef82..1beb92c1d1e 100644 --- a/llvm/utils/lit/lit/TestRunner.py +++ b/llvm/utils/lit/lit/TestRunner.py @@ -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: diff --git a/llvm/utils/lit/lit/__init__.py b/llvm/utils/lit/lit/__init__.py index b9f573d9319..3967fdd020a 100644 --- a/llvm/utils/lit/lit/__init__.py +++ b/llvm/utils/lit/lit/__init__.py @@ -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__ = [] |