Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #5636 -- Added missing Set import for Python2.3 support. Thanks…

…, wangchun@exoweb.net.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6438 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit d95c0fd0177998f69156cc218a18301110adcb61 1 parent 964f0c1
Russell Keith-Magee authored September 30, 2007

Showing 1 changed file with 5 additions and 0 deletions. Show diff stats Hide diff stats

  1. 5  django/contrib/auth/backends.py
5  django/contrib/auth/backends.py
... ...
@@ -1,6 +1,11 @@
1 1
 from django.db import connection
2 2
 from django.contrib.auth.models import User
3 3
 
  4
+try: 
  5
+    set 
  6
+except NameError: 
  7
+    from sets import Set as set # Python 2.3 fallback
  8
+ 	
4 9
 class ModelBackend:
5 10
     """
6 11
     Authenticate against django.contrib.auth.models.User

0 notes on commit d95c0fd

Please sign in to comment.
Something went wrong with that request. Please try again.