Author: mtredinnick
Date: 2008-07-12 18:25:22 -0500 (Sat, 12 Jul 2008)
New Revision: 7910

Modified:
   django/trunk/django/db/models/query.py
Log:
Fixed #7734 -- Fixed a Python 2.3 compatibility problem.


Modified: django/trunk/django/db/models/query.py
===================================================================
--- django/trunk/django/db/models/query.py      2008-07-12 20:44:05 UTC (rev 
7909)
+++ django/trunk/django/db/models/query.py      2008-07-12 23:25:22 UTC (rev 
7910)
@@ -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


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to