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...
1 parent f09f14d commit 5d837afe239d49f075912292c4ab6a05a7a8dcdc @jacobian jacobian committed Aug 11, 2008
Showing with 11 additions and 1 deletion.
  1. +6 −1 django/db/backends/__init__.py
  2. +5 −0 django/db/backends/creation.py
View
7 django/db/backends/__init__.py
@@ -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
View
5 django/db/backends/creation.py
@@ -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

0 comments on commit 5d837af

Please sign in to comment.