Code

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#16155 closed Cleanup/optimization (fixed)

Drop support for Python 2.4

Reported by: aaugustin Owned by: nobody
Component: Documentation Version: 1.3
Severity: Release blocker Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX:

Description

Support for Python 2.4 will be dropped in Django 1.4.

Attached patch updates the documentations wherever necessary and removes some dead code (ie. code that is unreachable in Python > 2.4).

Notes:

  • I haven't touched backwards compatibility in code in django/test/_doctest.py and django/util/unittest/loader.py because I prefer staying as close as possible to the standard library's version.
  • I haven't removed django/utils/copycompat.py and django/utils/hashcompat.py because some third-party apps may be using these models.
  • django/db/models/base.py mentions a "deepcopy problem in Python 2.4"; the code could probably be simplified now, but if it ain't broken, don't fix it.

Attachments (2)

drop-support-for-python24.patch (20.2 KB) - added by aaugustin 3 years ago.
drop-support-for-python24.2.patch (20.1 KB) - added by aaugustin 3 years ago.

Download all attachments as: .zip

Change History (8)

Changed 3 years ago by aaugustin

comment:1 Changed 3 years ago by lukeplant

  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 3 years ago by jezdez

  • Patch needs improvement set

hashcompat.py shouldn't be changed to DeprecationWarning but stay at PendingDeprecationWarning.

Changed 3 years ago by aaugustin

comment:3 Changed 3 years ago by aaugustin

  • Patch needs improvement unset

comment:4 Changed 3 years ago by jezdez

  • Triage Stage changed from Accepted to Ready for checkin

comment:5 Changed 3 years ago by ramiro

  • Resolution set to fixed
  • Status changed from new to closed

In [16349]:

Fixed #16155 -- Removed Python 2.4 compatibility constructs from code and mentions from docs. Thanks Aymeric Augustin for the report and patch.

comment:6 Changed 3 years ago by jacob

  • milestone 1.4 deleted

Milestone 1.4 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.