summaryrefslogtreecommitdiff
path: root/sphinx/errors.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-05-10 21:14:14 +0200
committerGeorg Brandl <georg@python.org>2009-05-10 21:14:14 +0200
commitf221194a3c25dd6bbb79314e54c36e317cfc0daf (patch)
tree1ad6c34a5ba0157a3efe7827ef19115d8cb875ed /sphinx/errors.py
parent7b982e6c65e51c706da0708fd1557352649b4be6 (diff)
downloadsphinx-f221194a3c25dd6bbb79314e54c36e317cfc0daf.tar.gz
#155: Fix Python 2.4 compatibility: exceptions are old-style classes there.
Diffstat (limited to 'sphinx/errors.py')
-rw-r--r--sphinx/errors.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/errors.py b/sphinx/errors.py
index d9b8b6b8..f39ee582 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