Opened 9 years ago

Closed 9 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@…> 9 years ago.

Download all attachments as: .zip

Change History (5)

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

Attachment: 5636.diff added

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

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

comment:2 Changed 9 years ago by anonymous

Component: UncategorizedContrib apps
Summary: fix global name 'set' is not defined python2.3 and authAdmin backend uses `set` without the Python 2.3 fallback
Triage Stage: UnreviewedReady for checkin

comment:3 Changed 9 years ago by Chris Beaven

Sorry, that was me promoting to checkin

comment:4 Changed 9 years ago by Russell Keith-Magee

Resolution: fixed
Status: newclosed

(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