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
This commit is contained in:
Jacob Kaplan-Moss 2008-08-11 15:24:44 +00:00
parent f09f14d0ae
commit 5d837afe23
2 changed files with 11 additions and 1 deletions

View File

@ -4,7 +4,12 @@ try:
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 File

@ -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