You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 08:49:51 +08:00
Bytecode 1.x fixes
This commit is contained in:
@@ -24,7 +24,6 @@ use in deparsing.
|
||||
|
||||
import sys
|
||||
import uncompyle6.scanners.scanner2 as scan
|
||||
from uncompyle6.scanner import L65536
|
||||
|
||||
# bytecode verification, verify(), uses JUMP_OPs from here
|
||||
from xdis.opcodes import opcode_26
|
||||
@@ -228,7 +227,9 @@ class Scanner26(scan.Scanner2):
|
||||
elif op in self.opc.JABS_OPS:
|
||||
pattr = repr(oparg)
|
||||
elif op in self.opc.LOCAL_OPS:
|
||||
if oparg in varnames:
|
||||
if self.version < (1, 5):
|
||||
pattr = names[oparg]
|
||||
else:
|
||||
pattr = varnames[oparg]
|
||||
elif op in self.opc.COMPARE_OPS:
|
||||
pattr = self.opc.cmp_op[oparg]
|
||||
|
Reference in New Issue
Block a user