Opened 17 years ago

Closed 17 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: dev
Severity: 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: no

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

Download all attachments as: .zip

Change History (5)

by Wang Chun <wangchun@…>, 17 years ago

Attachment: 5636.diff added

comment:1 by Wang Chun <wangchun@…>, 17 years ago

Has patch: set

comment:2 by anonymous, 17 years ago

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 by Chris Beaven, 17 years ago

Sorry, that was me promoting to checkin

comment:4 by Russell Keith-Magee, 17 years ago

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