1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Removed PY36 and PY37 version constants.

As the oldest supported version is Django 4.2, we only need constants for PY38+.

Thank you to Mariusz Felisiak for the review.
This commit is contained in:
Sarah Boyce 2024-05-11 10:46:09 +02:00
parent d4f6e6c088
commit 069d713430

View File

@ -13,8 +13,6 @@ PYPY = sys.implementation.name == "pypy"
# or later". So that third-party apps can use these values, each constant # or later". So that third-party apps can use these values, each constant
# should remain as long as the oldest supported Django version supports that # should remain as long as the oldest supported Django version supports that
# Python version. # Python version.
PY36 = sys.version_info >= (3, 6)
PY37 = sys.version_info >= (3, 7)
PY38 = sys.version_info >= (3, 8) PY38 = sys.version_info >= (3, 8)
PY39 = sys.version_info >= (3, 9) PY39 = sys.version_info >= (3, 9)
PY310 = sys.version_info >= (3, 10) PY310 = sys.version_info >= (3, 10)