You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Adjust for 3.0..3.1 branch
This commit is contained in:
@@ -157,17 +157,17 @@ def main_bin(
|
||||
"""
|
||||
|
||||
version_tuple = sys.version_info[0:2]
|
||||
if not ((3, 3) <= version_tuple < (3, 6)):
|
||||
if version_tuple > (3, 5):
|
||||
if not ((3, 0) <= version_tuple < (3, 3)):
|
||||
if version_tuple > (3, 3):
|
||||
print(
|
||||
"This version of the {program} is tailored for Python 3.3 to 3.5.\n"
|
||||
"This version of the {program} is tailored for Python 3.0 to 3.2.\n"
|
||||
"It may run on other versions, but there are problems, switch to code "
|
||||
"from another branch.\n"
|
||||
"You have version: %s." % version_tuple_to_str()
|
||||
)
|
||||
else:
|
||||
print(
|
||||
"Error: This version of the {program} runs from Python 3.3 to 3.5.\n"
|
||||
"Error: This version of the {program} runs from Python 3.0 to 3.2.\n"
|
||||
"You need another branch of this code for other Python versions."
|
||||
" \n\tYou have version: %s." % version_tuple_to_str()
|
||||
)
|
||||
|
Reference in New Issue
Block a user