You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 09:22:40 +08:00
Beter 2.7 end_if and COME_FROM determination
Fixes #149 ... Add more tests too
This commit is contained in:
@@ -130,6 +130,10 @@ class Python27Parser(Python2Parser):
|
||||
whileelsestmt ::= SETUP_LOOP testexpr l_stmts_opt JUMP_BACK POP_BLOCK
|
||||
else_suitel COME_FROM
|
||||
|
||||
return_stmts ::= _stmts return_stmt
|
||||
return_stmt ::= return
|
||||
|
||||
ifstmt ::= testexpr return_stmts COME_FROM
|
||||
ifstmt ::= testexpr return_if_stmts COME_FROM
|
||||
ifelsestmt ::= testexpr c_stmts_opt JUMP_FORWARD else_suite COME_FROM
|
||||
ifelsestmtc ::= testexpr c_stmts_opt JUMP_ABSOLUTE else_suitec
|
||||
|
Reference in New Issue
Block a user