Fix Python 1.5 bytecode deparse

Need xdis 3.0.2 though since the bug is really there.
This commit is contained in:
rocky
2016-10-11 02:39:09 -04:00
parent bb8d0a6389
commit 9ef670c872
61 changed files with 13 additions and 10 deletions

View File

@@ -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: