You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
Remove some of the 3.0 3.x instruction hackiness
This commit is contained in:
@@ -663,7 +663,9 @@ class Scanner3(Scanner):
|
|||||||
if not jump_back:
|
if not jump_back:
|
||||||
return
|
return
|
||||||
|
|
||||||
jump_back += 2 # FIXME ???
|
jb_inst = self.get_inst(jump_back)
|
||||||
|
jump_back = self.next_offset(jb_inst.opcode, jump_back)
|
||||||
|
|
||||||
if_offset = None
|
if_offset = None
|
||||||
if code[self.prev_op[next_line_byte]] not in self.pop_jump_tf:
|
if code[self.prev_op[next_line_byte]] not in self.pop_jump_tf:
|
||||||
if_offset = self.prev[next_line_byte]
|
if_offset = self.prev[next_line_byte]
|
||||||
|
@@ -85,7 +85,9 @@ class Scanner30(Scanner3):
|
|||||||
if not jump_back:
|
if not jump_back:
|
||||||
return
|
return
|
||||||
|
|
||||||
jump_back += 2 # FIXME ???
|
jb_inst = self.get_inst(jump_back)
|
||||||
|
jump_back = self.next_offset(jb_inst.opcode, jump_back)
|
||||||
|
|
||||||
if_offset = None
|
if_offset = None
|
||||||
if code[self.prev_op[next_line_byte]] not in JUMP_TF:
|
if code[self.prev_op[next_line_byte]] not in JUMP_TF:
|
||||||
if_offset = self.prev[next_line_byte]
|
if_offset = self.prev[next_line_byte]
|
||||||
|
Reference in New Issue
Block a user