Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
@freakboy3742 freakboy3742 authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 django/contrib/auth/backends.py
View
5 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
Please sign in to comment.
Something went wrong with that request. Please try again.