You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 08:49:51 +08:00
More Python 2 and 3 deparsing bugs fixed
* while + if break * try + finall /pass
This commit is contained in:
10
test/simple_source/stmts/05_try_finally_pass.py
Normal file
10
test/simple_source/stmts/05_try_finally_pass.py
Normal 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
|
10
test/simple_source/stmts/10_if_break_finally.py
Normal file
10
test/simple_source/stmts/10_if_break_finally.py
Normal 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
|
Reference in New Issue
Block a user