Skip to content

Commit

Permalink
Refs #32355 -- Restored PY36 and PY37 version constants.
Browse files Browse the repository at this point in the history
Partially reverts ec0ff40.

PY36 should be removed when Django 2.2 is EOL.
PY37 should be removed when Django 3.2 is EOL.

Thanks to Tim Graham for the report.
  • Loading branch information
carltongibson committed Feb 10, 2021
1 parent 0102b98 commit 4372233
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions django/utils/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
# 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
# Python version.
PY36 = sys.version_info >= (3, 6)
PY37 = sys.version_info >= (3, 7)
PY38 = sys.version_info >= (3, 8)
PY39 = sys.version_info >= (3, 9)

Expand Down

0 comments on commit 4372233

Please sign in to comment.