Work around 2.7 phony come-froms in ifelsesmt

This commit is contained in:
rocky
2020-01-31 15:49:29 -05:00
parent be022b3416
commit f27b72ab05
2 changed files with 5 additions and 2 deletions

View File

@@ -2442,7 +2442,9 @@ class SourceWalker(GenericASTTraversal, object):
# modularity is broken here
p_insts = self.p.insts
self.p.insts = self.scanner.insts
self.p.insts = self.scanner.insts
self.p.opc = self.scanner.opc
self.p.offset2inst_index = self.scanner.offset2inst_index
ast = python_parser.parse(self.p, tokens, customize)
self.p.insts = p_insts
except (python_parser.ParserError, AssertionError) as e: