Adjust for 3.0..3.1 branch

This commit is contained in:
rocky
2024-02-12 00:29:18 -05:00
parent 297c65d485
commit 35f9020871

View File

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