Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Jacob Kaplan-Moss authored August 11, 2008
7  django/db/backends/__init__.py
@@ -4,7 +4,12 @@
4 4
 except ImportError:
5 5
     # Import copy of _thread_local.py from Python 2.4
6 6
     from django.utils._threading_local import local
7  
-
  7
+try:
  8
+    set
  9
+except NameError
  10
+    # Python 2.3 compat
  11
+    from sets import Set as set
  12
+    
8 13
 from django.db.backends import util
9 14
 from django.utils import datetime_safe
10 15
 
5  django/db/backends/creation.py
... ...
@@ -1,5 +1,10 @@
1 1
 import sys
2 2
 import time
  3
+try:
  4
+    set
  5
+except NameError:
  6
+    # Python 2.3 compat
  7
+    from sets import Set as set
3 8
 
4 9
 from django.conf import settings
5 10
 from django.core.management import call_command

0 notes on commit 5d837af

Please sign in to comment.
Something went wrong with that request. Please try again.