diff options
author | Daniel Riazanovskiy <riazanovskiy@google.com> | 2020-10-13 15:04:20 +0000 |
---|---|---|
committer | Roland Levillain <rpl@google.com> | 2020-10-14 08:02:51 +0000 |
commit | d4220f1736892687ffdec31648f95d9cb5478ae6 (patch) | |
tree | 2679e856337a977013da2812a2dabef5fab28ac0 /tools/checker/file_format/c1visualizer/parser.py | |
parent | 4258f9e2f19016e04a71ec2b5349b707f8f47a18 (diff) |
Revert^2 "Port Checker to python 3"
This reverts commit 5409408a41045c7f178e362311eb51dab992d6db.
Reason for revert: The original issue (b/170308859) is fixed by
https://android-review.googlesource.com/c/platform/art/+/1458282.
Test: art/tools/checker/run_unit_tests.py
Test: art/test/testrunner/testrunner.py --host
Bug: 170308859
Bug: 162408889
Change-Id: Ibc4539403ea77a9e718c830466459e6354ef0f23
Diffstat (limited to 'tools/checker/file_format/c1visualizer/parser.py')
-rw-r--r-- | tools/checker/file_format/c1visualizer/parser.py | 6 |
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 b25d2b2f92..e8a6ac8978 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("name\s+\"[^\"]+\"", line): + if re.match(r"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("method\s+\"[^\"]*\"", line): + if re.match(r"method\s+\"[^\"]*\"", line): methodName = line.split("\"")[1].strip() if not methodName: Logger.fail("Empty method name in output", fileName, lineNo) - m = re.search("isa_features:([\w,-]+)", methodName) + m = re.search(r"isa_features:([\w,-]+)", methodName) if (m): rawFeatures = m.group(1).split(",") # Create a map of features in the form {featureName: isEnabled}. |