summaryrefslogtreecommitdiff
path: root/tools/checker/file_format/c1visualizer/parser.py
diff options
context:
space:
mode:
authorRoland Levillain <rpl@google.com>2020-10-07 17:44:41 +0000
committerRoland Levillain <rpl@google.com>2020-10-07 17:44:41 +0000
commit5409408a41045c7f178e362311eb51dab992d6db (patch)
tree4f5ed9d9ac417dfd69fd18f64412b2272c448e05 /tools/checker/file_format/c1visualizer/parser.py
parent961f2954c12cfd66970a3150f2e3ef9b2567300f (diff)
Revert "Port Checker to python 3"
This reverts commit 961f2954c12cfd66970a3150f2e3ef9b2567300f. Reason for revert: Breaks some Checker tests on the ART Buildbot (see b/170308859). Bug: 170308859 Bug: 162408889 Change-Id: If531b015c2aa23d4e64e9e349982dc72cf8dc093
Diffstat (limited to 'tools/checker/file_format/c1visualizer/parser.py')
-rw-r--r--tools/checker/file_format/c1visualizer/parser.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/checker/file_format/c1visualizer/parser.py b/tools/checker/file_format/c1visualizer/parser.py
index 9234bde9d1..a31bc565e6 100644
--- a/tools/checker/file_format/c1visualizer/parser.py
+++ b/tools/checker/file_format/c1visualizer/parser.py
@@ -37,7 +37,7 @@ def __parseC1Line(c1File, line, lineNo, state, fileName):
if state.currentState == C1ParserState.StartingCfgBlock:
# Previous line started a new 'cfg' block which means that this one must
# contain the name of the pass (this is enforced by C1visualizer).
- if re.match(r"name\s+\"[^\"]+\"", line):
+ if re.match("name\s+\"[^\"]+\"", line):
# Extract the pass name, prepend it with the name of the method and
# return as the beginning of a new group.
state.currentState = C1ParserState.InsideCfgBlock
@@ -54,12 +54,12 @@ def __parseC1Line(c1File, line, lineNo, state, fileName):
elif state.currentState == C1ParserState.InsideCompilationBlock:
# Search for the method's name. Format: method "<name>"
- if re.match(r"method\s+\"[^\"]*\"", line):
+ if re.match("method\s+\"[^\"]*\"", line):
methodName = line.split("\"")[1].strip()
if not methodName:
Logger.fail("Empty method name in output", fileName, lineNo)
- m = re.search(r"isa_features:([\w,-]+)", methodName)
+ m = re.search("isa_features:([\w,-]+)", methodName)
if (m):
rawFeatures = m.group(1).split(",")
# Create a map of features in the form {featureName: isEnabled}.