You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-02 16:44:46 +08:00
Use up right 3.x opcodes in jump detection...
A small but pervasive, and I guess important change. More correct COME_FROMs are now coming out. A number of grammar changes then in 3.0, 3.5, and 3.8
This commit is contained in:
@@ -502,9 +502,9 @@ class Scanner3(Scanner):
|
||||
next_offset = xdis.next_offset(op, self.opc, offset)
|
||||
|
||||
if label is None:
|
||||
if op in op3.hasjrel and op != self.opc.FOR_ITER:
|
||||
if op in self.opc.hasjrel and op != self.opc.FOR_ITER:
|
||||
label = next_offset + oparg
|
||||
elif op in op3.hasjabs:
|
||||
elif op in self.opc.hasjabs:
|
||||
if op in self.jump_if_pop:
|
||||
if oparg > offset:
|
||||
label = oparg
|
||||
|
Reference in New Issue
Block a user