Opened 7 years ago

Closed 7 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 Tim Graham, 7 years ago

Has patch: set

comment:2 by Simon Charette, 7 years ago

Triage Stage: UnreviewedAccepted

comment:3 by Tim Graham <timograham@…>, 7 years ago

Resolution: fixed
Status: newclosed

In 941b0a5b:

Fixed #28708 -- Added constants to detect the Python version.

Note: See TracTickets for help on using tickets.
Back to Top