From 5d837afe239d49f075912292c4ab6a05a7a8dcdc Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Mon, 11 Aug 2008 15:24:44 +0000 Subject: [PATCH] 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 --- django/db/backends/__init__.py | 7 ++++++- django/db/backends/creation.py | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/django/db/backends/__init__.py b/django/db/backends/__init__.py index 3748fb4b4f..68927de182 100644 --- a/django/db/backends/__init__.py +++ b/django/db/backends/__init__.py @@ -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 diff --git a/django/db/backends/creation.py b/django/db/backends/creation.py index a462be8251..3656866429 100644 --- a/django/db/backends/creation.py +++ b/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