summaryrefslogtreecommitdiff
path: root/sphinx/errors.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2018-11-11 12:55:22 -0800
committerJon Dufresne <jon.dufresne@gmail.com>2018-11-11 13:07:12 -0800
commit710ca3d7c3a41296861b0be79b9904246477968d (patch)
tree6cd7739bf90ec0fca6c0d0b42e7e324f431af82b /sphinx/errors.py
parent42d52d6a919fafdcd07ebea4fd983bf3055314fa (diff)
downloadsphinx-git-710ca3d7c3a41296861b0be79b9904246477968d.tar.gz
Use super() to call parent class's method
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 005605f1c..43b63ea05 100644
--- a/sphinx/errors.py
+++ b/sphinx/errors.py
@@ -54,7 +54,7 @@ class ExtensionError(SphinxError):
def __init__(self, message, orig_exc=None):
# type: (unicode, Exception) -> None
- SphinxError.__init__(self, message)
+ super(ExtensionError, self).__init__(message)
self.message = message
self.orig_exc = orig_exc
@@ -67,7 +67,7 @@ class ExtensionError(SphinxError):
def __str__(self):
# type: () -> str
- parent_str = SphinxError.__str__(self)
+ parent_str = super(ExtensionError, self).__str__()
if self.orig_exc:
return '%s (exception: %s)' % (parent_str, self.orig_exc)
return parent_str