Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #8228: fixed a Python 2.3 compatibility from [8296].

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8303 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 5d837afe239d49f075912292c4ab6a05a7a8dcdc 1 parent f09f14d
Jacob Kaplan-Moss jacobian authored
7 django/db/backends/__init__.py
View
@@ -4,7 +4,12 @@
except ImportError:
# Import copy of _thread_local.py from Python 2.4
from django.utils._threading_local import local
-
+try:
+ set
+except NameError
+ # Python 2.3 compat
+ from sets import Set as set
+
from django.db.backends import util
from django.utils import datetime_safe
5 django/db/backends/creation.py
View
@@ -1,5 +1,10 @@
import sys
import time
+try:
+ set
+except NameError:
+ # Python 2.3 compat
+ from sets import Set as set
from django.conf import settings
from django.core.management import call_command
Please sign in to comment.
Something went wrong with that request. Please try again.