diff options
author | Georg Brandl <georg@python.org> | 2009-05-10 23:14:14 +0400 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-05-10 23:14:14 +0400 |
commit | b1dbe952552cd265c4e554f0068a47a1afca8b69 (patch) | |
tree | 1ad6c34a5ba0157a3efe7827ef19115d8cb875ed /sphinx/errors.py | |
parent | 64d2c2c795e9e47474689fbf39ab0afc647a8397 (diff) |
#155: Fix Python 2.4 compatibility: exceptions are old-style classes there.
Diffstat (limited to 'sphinx/errors.py')
-rw-r--r-- | sphinx/errors.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/errors.py b/sphinx/errors.py index d9b8b6b87..f39ee5823 100644 --- a/sphinx/errors.py +++ b/sphinx/errors.py @@ -28,7 +28,7 @@ class ExtensionError(SphinxError): 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): @@ -38,7 +38,7 @@ class ExtensionError(SphinxError): 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 |