summaryrefslogtreecommitdiff
path: root/sphinx/builders/html.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2018-12-15 08:25:47 -0800
committerJon Dufresne <jon.dufresne@gmail.com>2018-12-15 08:35:55 -0800
commitade973f4e376e6eb573be70fcce4f9b21faec500 (patch)
tree5d185c9a880e77db1e4a73131afaae90b1ad1c77 /sphinx/builders/html.py
parent6113261948523ef6cad74621dec10e0cbf0189c7 (diff)
downloadsphinx-git-ade973f4e376e6eb573be70fcce4f9b21faec500.tar.gz
Use Python 3 super() argument-less syntax
The form is less verbose and more idiomatic for Python 3 only code. https://docs.python.org/3/library/functions.html#super
Diffstat (limited to 'sphinx/builders/html.py')
-rw-r--r--sphinx/builders/html.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/sphinx/builders/html.py b/sphinx/builders/html.py
index 10a6498e2..da94a6029 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