MCPcopy Index your code
hub / github.com/rocky/python-uncompyle6 / __init__

Method __init__

uncompyle6/scanner.py:102–110  ·  view source on GitHub ↗
(self, co, scanner, classname=None, show_asm=None)

Source from the content-addressed store, hash-verified

100 """
101
102 def __init__(self, co, scanner, classname=None, show_asm=None):
103 # Full initialization is given below, but for linters
104 # well set up some initial values.
105 self.co_code = None # Really either bytes for >= 3.0 and string in < 3.0
106
107 for i in dir(co):
108 if i.startswith("co_"):
109 setattr(self, i, getattr(co, i))
110 self._tokens, self._customize = scanner.ingest(co, classname, show_asm=show_asm)
111
112
113class Scanner(ABC):

Callers

nothing calls this directly

Calls 1

ingestMethod · 0.45

Tested by

no test coverage detected