You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
inspect.iscode -> hasattr for now until we write a cross-version iscode
This commit is contained in:
@@ -92,7 +92,7 @@ def get_python_parser(version, debug_parser):
|
||||
def python_parser(version, co, out=sys.stdout, showasm=False,
|
||||
parser_debug=PARSER_DEFAULT_DEBUG):
|
||||
import inspect
|
||||
assert inspect.iscode(co)
|
||||
assert hasattr(co, 'co_name')
|
||||
from uncompyle6.scanner import get_scanner
|
||||
scanner = get_scanner(version)
|
||||
tokens, customize = scanner.disassemble(co)
|
||||
|
Reference in New Issue
Block a user