Merge hell

This commit is contained in:
rocky
2021-10-29 22:27:53 -04:00
parent 850500c7ad
commit c8c6f1a63d

View File

@@ -111,7 +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="")}"""
v_str = "opcode_%s" % version_tuple_to_str(
version, start=0, end=2, delimiter=""
)
if is_pypy:
v_str += "pypy"
exec("from xdis.opcodes import %s" % v_str)