You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-02 16:44:46 +08:00
Need to back off ifelsetesting on 2.7...
until we can more fully untangle if stmts in loops. Current tests break urllib2.pyc and cgi.pyc
This commit is contained in:
@@ -185,6 +185,10 @@ class Python27Parser(Python2Parser):
|
||||
ifelsestmtl ::= testexpr c_stmts_opt JUMP_BACK else_suitel
|
||||
ifelsestmtl ::= testexpr c_stmts_opt CONTINUE else_suitel
|
||||
|
||||
# In the future when we have ifelsestmtl checking we should add something like:
|
||||
# ifelsestmtl ::= testexpr c_stmts_opt JUMP_FORWARD else_suite come_froms
|
||||
# c_stmts ::= ifelsestmtl
|
||||
|
||||
# "if"/"else" statement that ends in a RETURN
|
||||
ifelsestmtr ::= testexpr return_if_stmts COME_FROM returns
|
||||
|
||||
@@ -222,7 +226,7 @@ class Python27Parser(Python2Parser):
|
||||
|
||||
# FIXME: Put more in this table
|
||||
self.reduce_check_table = {
|
||||
"ifelsestmt": ifelsestmt,
|
||||
# "ifelsestmt": ifelsestmt,
|
||||
"tryelsestmt": tryelsestmt,
|
||||
"tryelsestmtl": tryelsestmt,
|
||||
}
|
||||
|
Reference in New Issue
Block a user