Adjust setup to correct version

This commit is contained in:
rocky
2024-03-14 15:17:37 -04:00
parent a8f89fa006
commit 7209405b2c
2 changed files with 3 additions and 14 deletions

View File

@@ -9,14 +9,3 @@ repos:
stages: [commit]
- id: end-of-file-fixer
stages: [commit]
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
stages: [commit]
- repo: https://github.com/psf/black
rev: 23.12.1
hooks:
- id: black
language_version: python3
stages: [commit]

View File

@@ -5,7 +5,7 @@ import sys
"""Setup script for the 'uncompyle6' distribution."""
SYS_VERSION = sys.version_info[0:2]
if not ((3, 0) <= SYS_VERSION < (3, 3)):
if not ((3, 3) <= SYS_VERSION < (3, 6)):
mess = "Python Release 3.0 .. 3.2 are supported in this code branch."
if (2, 4) <= SYS_VERSION <= (2, 7):
mess += (
@@ -17,9 +17,9 @@ if not ((3, 0) <= SYS_VERSION < (3, 3)):
"\nFor your Python, version %s, use the master code/branch."
% sys.version[0:3]
)
if (3, 3) >= SYS_VERSION < (3, 6):
if (3, 0) >= SYS_VERSION < (3, 3):
mess += (
"\nFor your Python, version %s, use the python-3.3-to-3.5 code/branch."
"\nFor your Python, version %s, use the python-3.0-to-3.2 code/branch."
% sys.version[0:3]
)
elif SYS_VERSION < (2, 4):