Skip to content

Commit 77fccd4

Browse files
remove unused variable
Created using spr 1.3.6
1 parent c1d1b84 commit 77fccd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/lit/lit/TestRunner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ def _replaceReadFile(match):
732732
try:
733733
with open(filePath) as fileHandle:
734734
return fileHandle.read()
735-
except FileNotFoundError as error:
735+
except FileNotFoundError:
736736
raise InternalShellError(cmd, "File does not exist: %s" % filePath)
737737

738738
arguments[i] = re.sub(r"%{readfile:([^}]*)}", _replaceReadFile, arg)

0 commit comments

Comments
 (0)