Skip to content
Browse files

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...
1 parent 185ba8f commit e47d8e7fb17c31a6ef5524957c8f8634ed6a64f5 @malcolmt malcolmt committed
Showing with 5 additions and 0 deletions.
  1. +5 −0 django/db/models/query.py
View
5 django/db/models/query.py
@@ -8,6 +8,11 @@
from django.dispatch import dispatcher
from django.utils.datastructures import SortedDict
+try:
+ set
+except NameError:
+ from sets import Set as set # Python 2.3 fallback
+
# Used to control how many objects are worked with at once in some cases (e.g.
# when deleting objects).
CHUNK_SIZE = 100

0 comments on commit e47d8e7

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