You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
ifelsesmt for 2.7 yet again
This commit is contained in:
@@ -121,10 +121,11 @@ def ifelsestmt(self, lhs, n, rule, ast, tokens, first, last):
|
||||
|
||||
# Make sure we don't jump at the end of the "then" inside the "else"
|
||||
# (jf_cf_pop may be a 2.6ish specific thing.)
|
||||
jf_cf_pop = ast[2]
|
||||
|
||||
if jf_cf_pop == "jf_cf_pop" and jf_cf_pop[0] == "JUMP_FORWARD":
|
||||
jump_forward = ast[2]
|
||||
if jump_forward == "jf_cf_pop":
|
||||
jump_forward = jf_cf_pop[0]
|
||||
|
||||
if jump_forward == "JUMP_FORWARD":
|
||||
endif_target = int(jump_forward.pattr)
|
||||
last_offset = tokens[last].off2int()
|
||||
if endif_target != last_offset:
|
||||
|
Reference in New Issue
Block a user