Author: carljm
Date: 2011-01-26 12:20:19 -0600 (Wed, 26 Jan 2011)
New Revision: 15329

Modified:
   django/trunk/django/db/models/deletion.py
Log:
Fixed Python 2.4 incompatibility introduced in r15249.

Modified: django/trunk/django/db/models/deletion.py
===================================================================
--- django/trunk/django/db/models/deletion.py   2011-01-26 15:44:11 UTC (rev 
15328)
+++ django/trunk/django/db/models/deletion.py   2011-01-26 18:20:19 UTC (rev 
15329)
@@ -10,7 +10,8 @@
 class ProtectedError(IntegrityError):
     def __init__(self, msg, protected_objects):
         self.protected_objects = protected_objects
-        super(ProtectedError, self).__init__(msg, protected_objects)
+        # TODO change this to use super() when we drop Python 2.4
+        IntegrityError.__init__(self, msg, protected_objects)
 
 
 def CASCADE(collector, field, sub_objs, using):

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

Reply via email to