diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-12-16 19:46:47 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-16 19:46:47 +0900 |
commit | 2597c4174e386552449991a0a247340de3dbcdcc (patch) | |
tree | 9941080af8cb6e672846c0030ed621c31204fd1f /sphinx/errors.py | |
parent | 6395c7d242eda62d0803aa656de82267ebea1a47 (diff) | |
parent | ade973f4e376e6eb573be70fcce4f9b21faec500 (diff) | |
download | sphinx-git-2597c4174e386552449991a0a247340de3dbcdcc.tar.gz |
Merge pull request #5796 from jdufresne/super
Use Python 3 super() argument-less syntax
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 df858fa87..b910c529f 100644 --- a/sphinx/errors.py +++ b/sphinx/errors.py @@ -54,7 +54,7 @@ class ExtensionError(SphinxError): def __init__(self, message, orig_exc=None): # type: (str, Exception) -> None - super(ExtensionError, self).__init__(message) + super().__init__(message) self.message = message self.orig_exc = orig_exc @@ -67,7 +67,7 @@ class ExtensionError(SphinxError): def __str__(self): # type: () -> str - parent_str = super(ExtensionError, self).__str__() + parent_str = super().__str__() if self.orig_exc: return '%s (exception: %s)' % (parent_str, self.orig_exc) return parent_str |