Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
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
@jacobian jacobian authored
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.
Something went wrong with that request. Please try again.