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/builders/html.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/builders/html.py')
-rw-r--r-- | sphinx/builders/html.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sphinx/builders/html.py b/sphinx/builders/html.py index 3c47ce7e2..6d09d17cb 100644 --- a/sphinx/builders/html.py +++ b/sphinx/builders/html.py @@ -122,7 +122,7 @@ class JSContainer(list): warnings.warn('builder.script_files is deprecated. ' 'Please use app.add_js_file() instead.', RemovedInSphinx30Warning, stacklevel=2) - super(JSContainer, self).insert(index, obj) + super().insert(index, obj) def extend(self, other): # type: ignore # type: (List[str]) -> None @@ -256,7 +256,7 @@ class StandaloneHTMLBuilder(Builder): def __init__(self, app): # type: (Sphinx) -> None - super(StandaloneHTMLBuilder, self).__init__(app) + super().__init__(app) # CSS files self.css_files = [] # type: List[Dict[str, str]] @@ -1211,7 +1211,7 @@ class DirectoryHTMLBuilder(StandaloneHTMLBuilder): def prepare_writing(self, docnames): # type: (Set[str]) -> None - super(DirectoryHTMLBuilder, self).prepare_writing(docnames) + super().prepare_writing(docnames) self.globalcontext['no_search_suffix'] = True @@ -1474,7 +1474,7 @@ class SerializingHTMLBuilder(StandaloneHTMLBuilder): self.dump_context(self.globalcontext, outfilename) # super here to dump the search index - super(SerializingHTMLBuilder, self).handle_finish() + super().handle_finish() # copy the environment file from the doctree dir to the output dir # as needed by the web app |