1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2025-01-22 06:48:45 +00:00

Added official support for Python 3.12

This commit is contained in:
morpheus65535 2024-12-14 00:09:51 -05:00
parent cf559d1028
commit 43a5841d04

View file

@ -25,8 +25,8 @@ def check_python_version():
print("Python " + minimum_py3_str + " or greater required. " print("Python " + minimum_py3_str + " or greater required. "
"Current version is " + platform.python_version() + ". Please upgrade Python.") "Current version is " + platform.python_version() + ". Please upgrade Python.")
exit_program(EXIT_PYTHON_UPGRADE_NEEDED) exit_program(EXIT_PYTHON_UPGRADE_NEEDED)
elif int(python_version[0]) == 3 and int(python_version[1]) > 11: elif int(python_version[0]) == 3 and int(python_version[1]) > 12:
print("Python version greater than 3.11.x is unsupported. Current version is " + platform.python_version() + print("Python version greater than 3.12.x is unsupported. Current version is " + platform.python_version() +
". Keep in mind that even if it works, you're on your own.") ". Keep in mind that even if it works, you're on your own.")
elif (int(python_version[0]) == minimum_py3_tuple[0] and int(python_version[1]) < minimum_py3_tuple[1]) or \ elif (int(python_version[0]) == minimum_py3_tuple[0] and int(python_version[1]) < minimum_py3_tuple[1]) or \
(int(python_version[0]) != minimum_py3_tuple[0]): (int(python_version[0]) != minimum_py3_tuple[0]):