You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 08:49:51 +08:00
Fix Python 1.5 bytecode deparse
Need xdis 3.0.2 though since the bug is really there.
This commit is contained in:
@@ -224,11 +224,7 @@ class Scanner26(scan.Scanner2):
|
||||
elif op in self.opc.hasjabs:
|
||||
pattr = repr(oparg)
|
||||
elif op in self.opc.haslocal:
|
||||
if self.version >= 2.0:
|
||||
pattr = varnames[oparg]
|
||||
elif self.version < 2.0:
|
||||
if oparg < len(names):
|
||||
pattr = names[oparg]
|
||||
pattr = varnames[oparg]
|
||||
elif op in self.opc.hascompare:
|
||||
pattr = self.opc.cmp_op[oparg]
|
||||
elif op in self.opc.hasfree:
|
||||
|
Reference in New Issue
Block a user