diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-11-11 12:55:22 -0800 |
---|---|---|
committer | Jon Dufresne <jon.dufresne@gmail.com> | 2018-11-11 13:07:12 -0800 |
commit | 710ca3d7c3a41296861b0be79b9904246477968d (patch) | |
tree | 6cd7739bf90ec0fca6c0d0b42e7e324f431af82b /sphinx/errors.py | |
parent | 42d52d6a919fafdcd07ebea4fd983bf3055314fa (diff) | |
download | sphinx-git-710ca3d7c3a41296861b0be79b9904246477968d.tar.gz |
Use super() to call parent class's method
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 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 |