Get ready for release 3.8.0

This commit is contained in:
rocky
2021-10-29 22:06:18 -04:00
parent 32c4b84458
commit 4911d85237
9 changed files with 19 additions and 27 deletions

View File

@@ -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