[lit] Use list comprehensions instead of map().
authorDaniel Dunbar <daniel@zuster.org>
Wed, 7 Aug 2013 21:43:17 +0000 (21:43 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 7 Aug 2013 21:43:17 +0000 (21:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187918 91177308-0d34-0410-b5e6-96231b3b80d8

utils/lit/lit/LitConfig.py
utils/lit/lit/TestRunner.py
utils/lit/lit/__init__.py

index bd7a60312285c9eda3e3c182b1e5096adace0d53..9a5ff9973ce7bbfbedbeb17eeba98610b326b71d 100644 (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)
index 989a992ef82e863b83424efb6a15bee6f770e616..1beb92c1d1e54e10480d66241919fc3c706a2811 100644 (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:
index b9f573d9319150d8fbd7db0cf570cfc56c757883..3967fdd020a0caf0d41ba436d20b1893f18a855b 100644 (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__ = []