More 2.7/2.7- grammer separation & cleanup

This commit is contained in:
rocky
2017-11-15 23:01:33 -05:00
parent f274ac0e3b
commit c28f2f2e56
2 changed files with 10 additions and 8 deletions

View File

@@ -40,9 +40,8 @@ class Python2Parser(PythonParser):
def p_stmt2(self, args):
"""
# Note: these are removed in 2.7
while1stmt ::= SETUP_LOOP l_stmts JUMP_BACK COME_FROM
while1stmt ::= SETUP_LOOP l_stmts JUMP_BACK POP_BLOCK COME_FROM
while1elsestmt ::= SETUP_LOOP l_stmts JUMP_BACK else_suite COME_FROM
exec_stmt ::= expr exprlist DUP_TOP EXEC_STMT