Allow decompilation of older bytecode from 3.9+

This commit is contained in:
rocky
2023-06-16 07:30:25 -04:00
parent 36f00d334e
commit 568b64b59e

View File

@@ -80,30 +80,7 @@ def usage():
def main_bin(): def main_bin():
if not ( current_bytecode_supported = True
sys.version_info[0:2]
in (
(2, 6),
(2, 7),
(3, 0),
(3, 1),
(3, 2),
(3, 3),
(3, 4),
(3, 5),
(3, 6),
(3, 7),
(3, 8),
(3, 9),
(3, 10),
)
):
print(
f"Error: {program} can decompile only bytecode from Python 3.7"
f""" to 3.8.\n\tYou have version: {version_tuple_to_str()}."""
)
sys.exit(-1)
recurse_dirs = False recurse_dirs = False
numproc = 0 numproc = 0
outfile = "-" outfile = "-"