You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Propagate show_asm debug option down to functions
This commit is contained in:
@@ -92,11 +92,11 @@ class Code(object):
|
||||
the diassembled code is stored in the attribute '_tokens'.
|
||||
"""
|
||||
|
||||
def __init__(self, co, scanner, classname=None):
|
||||
def __init__(self, co, scanner, classname=None, show_asm=None):
|
||||
for i in dir(co):
|
||||
if i.startswith("co_"):
|
||||
setattr(self, i, getattr(co, i))
|
||||
self._tokens, self._customize = scanner.ingest(co, classname)
|
||||
self._tokens, self._customize = scanner.ingest(co, classname, show_asm=show_asm)
|
||||
|
||||
|
||||
class Scanner(object):
|
||||
|
Reference in New Issue
Block a user