You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
JUMP_IF_{TRUE,FALSE}_OR_OP fixes
This commit is contained in:
@@ -701,11 +701,8 @@ class Scanner2(scan.Scanner):
|
||||
if op in self.opc.hasjrel and op != self.opc.FOR_ITER:
|
||||
label = i + 3 + oparg
|
||||
elif self.version == 2.7 and op in self.opc.hasjabs:
|
||||
if op in (self.opc.JUMP_IF_FALSE_OR_POP, self.opc.JUMP_IF_TRUE_OR_POP):
|
||||
if (oparg > i):
|
||||
label = oparg
|
||||
elif self.version < 2.7 and op in self.opc.hasjabs:
|
||||
if op in (self.opc.JUMP_IF_FALSE, self.opc.JUMP_IF_TRUE):
|
||||
if op in (self.opc.JUMP_IF_FALSE_OR_POP,
|
||||
self.opc.JUMP_IF_TRUE_OR_POP):
|
||||
if (oparg > i):
|
||||
label = oparg
|
||||
|
||||
|
Reference in New Issue
Block a user