Move transition_to_generator to transitions

This commit is contained in:
Dave Halter
2018-06-28 09:42:37 +02:00
parent 8e118c913c
commit badb2fe010
3 changed files with 6 additions and 6 deletions

View File

@@ -132,7 +132,7 @@ class Parser(BaseParser):
# error recovery.
if self.stack[-1].dfa.from_rule == 'simple_stmt':
try:
plan = self.stack[-1].dfa.transition_to_plan[PythonTokenTypes.NEWLINE]
plan = self.stack[-1].dfa.transitions[PythonTokenTypes.NEWLINE]
except KeyError:
pass
else: