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:
parent
f09f14d0ae
commit
5d837afe23
|
@ -4,6 +4,11 @@ try:
|
||||||
except ImportError:
|
except ImportError:
|
||||||
# Import copy of _thread_local.py from Python 2.4
|
# Import copy of _thread_local.py from Python 2.4
|
||||||
from django.utils._threading_local import local
|
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.db.backends import util
|
||||||
from django.utils import datetime_safe
|
from django.utils import datetime_safe
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
try:
|
||||||
|
set
|
||||||
|
except NameError:
|
||||||
|
# Python 2.3 compat
|
||||||
|
from sets import Set as set
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.core.management import call_command
|
from django.core.management import call_command
|
||||||
|
|
Loading…
Reference in New Issue