Opened 8 years ago
Closed 8 years ago
#28708 closed Cleanup/optimization (fixed)
Add constants to detect the Python version
| Reported by: | Tim Graham | Owned by: | nobody |
|---|---|---|---|
| Component: | Core (Other) | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
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 , 8 years ago
| Has patch: | set |
|---|
comment:2 by , 8 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|
Note:
See TracTickets
for help on using tickets.
PR