Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #7734 -- Fixed a Python 2.3 compatibility problem.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7910 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit e47d8e7fb17c31a6ef5524957c8f8634ed6a64f5 1 parent 185ba8f
Malcolm Tredinnick authored July 12, 2008

Showing 1 changed file with 5 additions and 0 deletions. Show diff stats Hide diff stats

  1. 5  django/db/models/query.py
5  django/db/models/query.py
@@ -8,6 +8,11 @@
8 8
 from django.dispatch import dispatcher
9 9
 from django.utils.datastructures import SortedDict
10 10
 
  11
+try:
  12
+    set
  13
+except NameError:
  14
+    from sets import Set as set     # Python 2.3 fallback
  15
+
11 16
 # Used to control how many objects are worked with at once in some cases (e.g.
12 17
 # when deleting objects).
13 18
 CHUNK_SIZE = 100

0 notes on commit e47d8e7

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