Opened 7 years ago
Closed 7 years ago
#28708 closed Cleanup/optimization (fixed)
Add constants to detect the Python version
Description ¶
There are a number of sys.version_info
checks in Django. It would reduce repetition if values like PY36
(similar to six.PY2
and six.PY3
) were importable from django.utils.version
. This is intended to be a private but stable API so that third-party apps can also use these values.
Change History (3)
comment:1 by , 7 years ago
Has patch: | set |
---|
comment:2 by , 7 years ago
Triage Stage: | Unreviewed → Accepted |
---|
Note:
See TracTickets
for help on using tickets.
PR