Opened 7 years ago

Closed 7 years ago

#5636 closed (fixed)

Admin backend uses `set` without the Python 2.3 fallback

Reported by: anonymous Owned by: nobody
Component: Contrib apps Version: master
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

When using svn and python2.3 ant try top login as user getting an error global name 'set' is not defined.

To fix need to add at the top into django/contrib/auth/backends.py:

try:
    set
except NameError:
    from sets import Set as set   # Python 2.3 fallback

Attachments (1)

5636.diff (487 bytes) - added by Wang Chun <wangchun@…> 7 years ago.

Download all attachments as: .zip

Change History (5)

Changed 7 years ago by Wang Chun <wangchun@…>

comment:1 Changed 7 years ago by Wang Chun <wangchun@…>

  • Has patch set
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 7 years ago by anonymous

  • Component changed from Uncategorized to Contrib apps
  • Summary changed from fix global name 'set' is not defined python2.3 and auth to Admin backend uses `set` without the Python 2.3 fallback
  • Triage Stage changed from Unreviewed to Ready for checkin

comment:3 Changed 7 years ago by SmileyChris

Sorry, that was me promoting to checkin

comment:4 Changed 7 years ago by russellm

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

(In [6438]) Fixed #5636 -- Added missing Set import for Python2.3 support. Thanks, wangchun@….

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