Commits

Georg Brandl committed 5aacbb9

#155: Fix Python 2.4 compatibility: exceptions are old-style classes there.

Comments (0)

Files changed (2)

 Release 0.6.2 (in development)
 ==============================
 
+* #155: Fix Python 2.4 compatibility: exceptions are old-style
+  classes there.
+
 * #150: Fix display of the "sphinxdoc" theme on Internet Explorer
   versions 6 and 7.
 
     category = 'Extension error'
 
     def __init__(self, message, orig_exc=None):
-        super(ExtensionError, self).__init__(message)
+        SphinxError.__init__(self, message)
         self.orig_exc = orig_exc
 
     def __repr__(self):
         return '%s(%r)' % (self.__class__.__name__, self.message)
 
     def __str__(self):
-        parent_str = super(ExtensionError, self).__str__()
+        parent_str = SphinxError.__str__(self)
         if self.orig_exc:
             return '%s (exception: %s)' % (parent_str, self.orig_exc)
         return parent_str