You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Use get_inst() to paper around EXTENDED_ARG
This commit is contained in:
@@ -9,6 +9,7 @@ Usage-Examples:
|
||||
test_pyenvlib.py --all --verify # decomyile all tests and verify results
|
||||
test_pyenvlib.py --test # decompile only the testsuite
|
||||
test_pyenvlib.py --2.7.12 --verify # decompile and verify python lib 2.7.11
|
||||
test_pyenvlib.py --3.6.4 --max 10 # decompile first 10 of 3.6.4
|
||||
|
||||
Adding own test-trees:
|
||||
|
||||
|
@@ -790,7 +790,7 @@ class Scanner3(Scanner):
|
||||
# not myself? If so, it's part of a larger conditional.
|
||||
# rocky: if we have a conditional jump to the next instruction, then
|
||||
# possibly I am "skipping over" a "pass" or null statement.
|
||||
pretarget = self.insts[self.offset2inst_index[prev_op[target]]]
|
||||
pretarget = self.get_inst(prev_op[target])
|
||||
|
||||
if (pretarget.opcode in self.pop_jump_if_pop and
|
||||
(target > offset) and pretarget.offset != offset):
|
||||
|
Reference in New Issue
Block a user