From d95c0fd0177998f69156cc218a18301110adcb61 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Sun, 30 Sep 2007 04:11:29 +0000 Subject: [PATCH] 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 --- django/contrib/auth/backends.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/django/contrib/auth/backends.py b/django/contrib/auth/backends.py index be6cfede11..f79929e2d2 100644 --- a/django/contrib/auth/backends.py +++ b/django/contrib/auth/backends.py @@ -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