diff options
Diffstat (limited to 'sphinx/errors.py')
-rw-r--r-- | sphinx/errors.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sphinx/errors.py b/sphinx/errors.py index 005605f1c..f2cbb843c 100644 --- a/sphinx/errors.py +++ b/sphinx/errors.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ sphinx.errors ~~~~~~~~~~~~~ @@ -53,8 +52,8 @@ class ExtensionError(SphinxError): category = 'Extension error' def __init__(self, message, orig_exc=None): - # type: (unicode, Exception) -> None - SphinxError.__init__(self, message) + # type: (str, Exception) -> None + super().__init__(message) self.message = message self.orig_exc = orig_exc @@ -67,7 +66,7 @@ class ExtensionError(SphinxError): def __str__(self): # type: () -> str - parent_str = SphinxError.__str__(self) + parent_str = super().__str__() if self.orig_exc: return '%s (exception: %s)' % (parent_str, self.orig_exc) return parent_str |