Opened 7 years ago

Closed 7 years ago

Last modified 4 years ago

#8078 closed (fixed)

sets module deprecated in Python 2.6

Reported by: kmtracey Owned by: nobody
Component: contrib.admin Version: master
Severity: Keywords: python26
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

django/contrib/admin/options.py imports sets, which causes a deprecation warning in Python 2.6. I'll attach a patch that uses set if available and only falls back to sets if necessary. Tested on Python 2.3.5, 2.5.1, and 2.6b2.

Attachments (1)

sets.diff (1.1 KB) - added by kmtracey 7 years ago.

Download all attachments as: .zip

Change History (6)

Changed 7 years ago by kmtracey

comment:1 Changed 7 years ago by kmtracey

  • Keywords python26 added
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 7 years ago by kmtracey

  • Has patch set

comment:3 Changed 7 years ago by Simon Greenhill

  • milestone set to 1.0 beta
  • Triage Stage changed from Unreviewed to Ready for checkin

comment:4 Changed 7 years ago by gwilson

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

(In [8192]) Fixed #8078 -- Fixed a Python 2.3 incompatibility in contrib/admin/options.py, thanks Karen Tracey.

comment:5 Changed 4 years ago by jacob

  • milestone 1.0 beta deleted

Milestone 1.0 beta deleted

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