Author: russellm
Date: 2007-09-29 23:11:29 -0500 (Sat, 29 Sep 2007)
New Revision: 6438

Modified:
   django/trunk/django/contrib/auth/backends.py
Log:
Fixed #5636 -- Added missing Set import for Python2.3 support. Thanks, [EMAIL 
PROTECTED]


Modified: django/trunk/django/contrib/auth/backends.py
===================================================================
--- django/trunk/django/contrib/auth/backends.py        2007-09-30 02:30:06 UTC 
(rev 6437)
+++ django/trunk/django/contrib/auth/backends.py        2007-09-30 04:11:29 UTC 
(rev 6438)
@@ -1,6 +1,11 @@
 from django.db import connection
 from django.contrib.auth.models import User
 
+try: 
+    set 
+except NameError: 
+    from sets import Set as set # Python 2.3 fallback
+       
 class ModelBackend:
     """
     Authenticate against django.contrib.auth.models.User


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to