From ade973f4e376e6eb573be70fcce4f9b21faec500 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sat, 15 Dec 2018 08:25:47 -0800 Subject: 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 --- sphinx/builders/htmlhelp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sphinx/builders/htmlhelp.py') diff --git a/sphinx/builders/htmlhelp.py b/sphinx/builders/htmlhelp.py index 24f3ab2c4..54c2412db 100644 --- a/sphinx/builders/htmlhelp.py +++ b/sphinx/builders/htmlhelp.py @@ -200,7 +200,7 @@ class HTMLHelpBuilder(StandaloneHTMLBuilder): # the output files for HTML help is .html by default self.out_suffix = '.html' self.link_suffix = '.html' - super(HTMLHelpBuilder, self).init() + super().init() # determine the correct locale setting locale = chm_locales.get(self.config.language) if locale is not None: @@ -227,7 +227,7 @@ class HTMLHelpBuilder(StandaloneHTMLBuilder): if node.get('internal') is None and 'refuri' in node: node['target'] = '_blank' - super(HTMLHelpBuilder, self).write_doc(docname, doctree) + super().write_doc(docname, doctree) def build_hhx(self, outdir, outname): # type: (str, str) -> None -- cgit v1.2.1