Skip to content

Commit 568b64b

Browse files
committed
Allow decompilation of older bytecode from 3.9+
1 parent 36f00d3 commit 568b64b

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

uncompyle6/bin/uncompile.py

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -80,30 +80,7 @@ def usage():
8080

8181

8282
def main_bin():
83-
if not (
84-
sys.version_info[0:2]
85-
in (
86-
(2, 6),
87-
(2, 7),
88-
(3, 0),
89-
(3, 1),
90-
(3, 2),
91-
(3, 3),
92-
(3, 4),
93-
(3, 5),
94-
(3, 6),
95-
(3, 7),
96-
(3, 8),
97-
(3, 9),
98-
(3, 10),
99-
)
100-
):
101-
print(
102-
f"Error: {program} can decompile only bytecode from Python 3.7"
103-
f""" to 3.8.\n\tYou have version: {version_tuple_to_str()}."""
104-
)
105-
sys.exit(-1)
106-
83+
current_bytecode_supported = True
10784
recurse_dirs = False
10885
numproc = 0
10986
outfile = "-"

0 commit comments

Comments
 (0)