xdis _disassemble->disassemble

This commit is contained in:
rocky
2017-11-06 00:38:22 -05:00
parent 4f0a668b7c
commit dea17cd7f1
4 changed files with 343 additions and 4 deletions

View File

@@ -91,7 +91,7 @@ class Scanner2(Scanner):
from xdis.bytecode import Bytecode
bytecode = Bytecode(co, self.opc)
for instr in bytecode.get_instructions(co):
print(instr._disassemble())
print(instr.disassemble())
# list of tokens/instructions
tokens = []