Adjust 3.x while1else reduction check

This commit is contained in:
rocky
2018-03-20 11:33:10 -04:00
parent 0e64111195
commit 90ac8a463d
4 changed files with 15 additions and 2 deletions

View File

@@ -42,6 +42,9 @@ class Python34Parser(Python33Parser):
whileelsestmt ::= SETUP_LOOP testexpr l_stmts_opt JUMP_BACK POP_BLOCK
else_suitel COME_FROM
while1elsestmt ::= SETUP_LOOP l_stmts JUMP_BACK POP_BLOCK else_suitel
COME_FROM_LOOP
# Python 3.4+ optimizes the trailing two JUMPS away
# Is this 3.4 only?