Opened 5 years ago

Closed 5 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 Changed 5 years ago by Tim Graham

Has patch: set

comment:2 Changed 5 years ago by Simon Charette

Triage Stage: UnreviewedAccepted

comment:3 Changed 5 years ago by Tim Graham <timograham@…>

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