From 00c2a90cf89cfa85cfe21537e646eeddbe8556ac Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Sun, 18 Mar 2018 12:58:31 +0900 Subject: [PATCH] Fix mypy violations --- sphinx/builders/qthelp.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/sphinx/builders/qthelp.py b/sphinx/builders/qthelp.py index 7a5c6c0d6..13ea256da 100644 --- a/sphinx/builders/qthelp.py +++ b/sphinx/builders/qthelp.py @@ -145,13 +145,13 @@ class QtHelpBuilder(StandaloneHTMLBuilder): # write the project file with codecs.open(path.join(outdir, outname + '.qhp'), 'w', 'utf-8') as f: # type: ignore # NOQA - content = render_file('project.qhp', outname=outname, - title=self.config.html_title, version=self.config.version, - project=self.config.project, namespace=nspace, - master_doc=self.config.master_doc, - sections=sections, keywords=keywords, - files=self.get_project_files(outdir)) - f.write(content) + body = render_file('project.qhp', outname=outname, + title=self.config.html_title, version=self.config.version, + project=self.config.project, namespace=nspace, + master_doc=self.config.master_doc, + sections=sections, keywords=keywords, + files=self.get_project_files(outdir)) + f.write(body) homepage = 'qthelp://' + posixpath.join( nspace, 'doc', self.get_target_uri(self.config.master_doc)) @@ -159,10 +159,10 @@ class QtHelpBuilder(StandaloneHTMLBuilder): logger.info('writing collection project file...') with codecs.open(path.join(outdir, outname + '.qhcp'), 'w', 'utf-8') as f: # type: ignore # NOQA - content = render_file('project.qhcp', outname=outname, - title=self.config.html_short_title, - homepage=homepage, startpage=startpage) - f.write(content) + body = render_file('project.qhcp', outname=outname, + title=self.config.html_short_title, + homepage=homepage, startpage=startpage) + f.write(body) def isdocnode(self, node): # type: (nodes.Node) -> bool