Small misfeature disassemble showasm parameter use

This commit is contained in:
rocky
2016-06-24 15:05:14 -04:00
parent 4fa68b8894
commit fe8000e02a
2 changed files with 3 additions and 3 deletions

View File

@@ -211,7 +211,7 @@ class Scanner2(scan.Scanner):
pass
pass
if self.show_asm in ('both', 'after'):
if show_asm in ('both', 'after'):
for t in tokens:
print(t)
print()

View File

@@ -76,7 +76,7 @@ class Scanner26(scan.Scanner2):
'''
show_asm = self.show_asm if not show_asm else show_asm
if self.show_asm in ('both', 'before'):
if show_asm in ('both', 'before'):
from xdis.bytecode import Bytecode
bytecode = Bytecode(co, self.opc)
for instr in bytecode.get_instructions(co):
@@ -260,7 +260,7 @@ class Scanner26(scan.Scanner2):
pass
pass
if self.show_asm:
if show_asm:
for t in tokens:
print(t)
print()