You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Get ready for release 3.8.0
This commit is contained in:
@@ -111,10 +111,9 @@ class Scanner(object):
|
||||
self.is_pypy = is_pypy
|
||||
|
||||
if version[:2] in PYTHON_VERSIONS:
|
||||
v_str = f"""opcode_{version_tuple_to_str(version, start=0, end=2, delimiter="")}"""
|
||||
if is_pypy:
|
||||
v_str = "opcode_%spypy" % ("".join([str(v) for v in version]))
|
||||
else:
|
||||
v_str = "opcode_%s" % ("".join([str(v) for v in version]))
|
||||
v_str += "pypy"
|
||||
exec("from xdis.opcodes import %s" % v_str)
|
||||
exec("self.opc = %s" % v_str)
|
||||
else:
|
||||
@@ -544,7 +543,7 @@ def get_scanner(version, is_pypy=False, show_asm=None):
|
||||
|
||||
# Pick up appropriate scanner
|
||||
if version[:2] in PYTHON_VERSIONS:
|
||||
v_str = "".join([str(v) for v in version[:2]])
|
||||
v_str = version_tuple_to_str(version, start=0, end=2, delimiter="")
|
||||
try:
|
||||
import importlib
|
||||
|
||||
|
Reference in New Issue
Block a user