You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
Small misfeature disassemble showasm parameter use
This commit is contained in:
@@ -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()
|
||||
|
@@ -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()
|
||||
|
Reference in New Issue
Block a user