]> granicus.if.org Git - llvm/commitdiff
[lit] Remove semicolons in Python code
authorBrian Gesiak <modocache@gmail.com>
Mon, 10 Oct 2016 01:18:14 +0000 (01:18 +0000)
committerBrian Gesiak <modocache@gmail.com>
Mon, 10 Oct 2016 01:18:14 +0000 (01:18 +0000)
Summary:
Semicolons aren't necessary as statement terminators in Python, and
each of these uses are superfluous as they appear at the end of a line.
The convention is to not use semicolons where not needed, so remove them.

Reviewers: echristo, delcypher, beanz, ddunbar

Subscribers: llvm-commits, mehdi_amini

Differential Revision: https://reviews.llvm.org/D25409

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283707 91177308-0d34-0410-b5e6-96231b3b80d8

utils/lit/lit/TestRunner.py
utils/lit/lit/util.py

index 7c5683036a08c3fe46ad0028cce47595540ed13a..b283e7f6f104408d67d440b5618fef0c202ea430 100644 (file)
@@ -503,7 +503,7 @@ def executeScriptInternal(test, litConfig, tmpBase, commands, cwd):
     return out, err, exitCode, timeoutInfo
 
 def executeScript(test, litConfig, tmpBase, commands, cwd):
-    bashPath = litConfig.getBashPath();
+    bashPath = litConfig.getBashPath()
     isWin32CMDEXE = (litConfig.isWindows and not bashPath)
     script = tmpBase + '.script'
     if isWin32CMDEXE:
index d3187e3c3b3123c300852ddd46b92b007ba54e70..609011b1972d8f92a578b6d16a7f440dad711529 100644 (file)
@@ -114,8 +114,8 @@ def which(command, paths = None):
 def checkToolsPath(dir, tools):
     for tool in tools:
         if not os.path.exists(os.path.join(dir, tool)):
-            return False;
-    return True;
+            return False
+    return True
 
 def whichTools(tools, paths):
     for path in paths.split(os.pathsep):