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

@@ -633,11 +633,11 @@ class Scanner3(Scanner):
rel_offset = 0
if self.version >= 3.6:
target = self.code[offset+1]
if op in self.opc.hasjrel:
if op in self.opc.JREL_OPS:
rel_offset = offset + 2
else:
target = self.code[offset+1] + self.code[offset+2] * 256
if op in self.opc.hasjrel:
if op in self.opc.JREL_OPS:
rel_offset = offset + 3
pass
pass