Use xdis 3.5.0's opcode sets

This commit is contained in:
rocky
2017-07-08 20:41:46 -04:00
parent 2e164763eb
commit 27ab6fe2f5
7 changed files with 26 additions and 26 deletions

View File

@@ -65,10 +65,10 @@ class Token:
if self.pattr:
pattr = self.pattr
if self.opc:
if self.op in self.opc.hasjrel:
if self.op in self.opc.JREL_OPS:
if not self.pattr.startswith('to '):
pattr = "to " + self.pattr
elif self.op in self.opc.hasjabs:
elif self.op in self.opc.JABS_OPS:
self.pattr= str(self.pattr)
if not self.pattr.startswith('to '):
pattr = "to " + str(self.pattr)