More Python 2 and 3 deparsing bugs fixed

* while + if break
* try + finall /pass
This commit is contained in:
rocky
2016-05-05 20:56:41 -04:00
parent 845a4a2003
commit c58481a9eb
10 changed files with 27 additions and 5 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,10 @@
# Tests and empty finally section
# tryfinallystmt ::= SETUP_FINALLY e_suite_stmts_opt
# POP_BLOCK LOAD_CONST COME_FROM e_suite_stmts_opt END_FINALLY
#
try:
pass
finally:
pass
pass

View File

@@ -0,0 +1,10 @@
# Tests
# while1stmt ::= SETUP_LOOP l_stmts JUMP_BACK POP_BLOCK COME_FROM
# tryfinallystmt ::= SETUP_FINALLY suite_stmts_opt POP_BLOCK
try:
while 1:
if __file__:
break
finally:
pass