2.6 return_stmt bug

This commit is contained in:
rocky
2016-07-01 06:46:47 -04:00
parent 44c03ff7c7
commit fa6ae76a64
4 changed files with 15 additions and 1 deletions

View File

@@ -299,6 +299,8 @@ class PythonParser(GenericASTBuilder):
while1stmt ::= SETUP_LOOP l_stmts JUMP_BACK COME_FROM
while1stmt ::= SETUP_LOOP l_stmts JUMP_BACK POP_BLOCK COME_FROM
# This is Python 2.7+; segregate
while1stmt ::= SETUP_LOOP return_stmts COME_FROM
while1elsestmt ::= SETUP_LOOP l_stmts JUMP_BACK else_suite COME_FROM