summaryrefslogtreecommitdiff
path: root/sphinx/builders/htmlhelp.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2017-01-12 12:54:02 +0900
committerGitHub <noreply@github.com>2017-01-12 12:54:02 +0900
commit478306e052d9711170b1fbe63635edef02853484 (patch)
tree502a9e495cef7d748a5a439de35bdb4647f5f138 /sphinx/builders/htmlhelp.py
parentd170862866a576cf342d27074d009e869e3670c4 (diff)
parent76ecccf8af86568cde5310638b4ac21c1aee0042 (diff)
downloadsphinx-git-478306e052d9711170b1fbe63635edef02853484.tar.gz
Merge pull request #3327 from tk0miya/flake8
Update flake8 rules
Diffstat (limited to 'sphinx/builders/htmlhelp.py')
-rw-r--r--sphinx/builders/htmlhelp.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/sphinx/builders/htmlhelp.py b/sphinx/builders/htmlhelp.py
index 79268ab74..11c614b5a 100644
--- a/sphinx/builders/htmlhelp.py
+++ b/sphinx/builders/htmlhelp.py
@@ -208,12 +208,12 @@ class HTMLHelpBuilder(StandaloneHTMLBuilder):
def build_hhx(self, outdir, outname):
self.info('dumping stopword list...')
- with self.open_file(outdir, outname+'.stp') as f:
+ with self.open_file(outdir, outname + '.stp') as f:
for word in sorted(stopwords):
print(word, file=f)
self.info('writing project file...')
- with self.open_file(outdir, outname+'.hhp') as f:
+ with self.open_file(outdir, outname + '.hhp') as f:
f.write(project_template % {
'outname': outname,
'title': self.config.html_title,
@@ -234,7 +234,7 @@ class HTMLHelpBuilder(StandaloneHTMLBuilder):
file=f)
self.info('writing TOC file...')
- with self.open_file(outdir, outname+'.hhc') as f:
+ with self.open_file(outdir, outname + '.hhc') as f:
f.write(contents_header)
# special books
f.write('<LI> ' + object_sitemap % (self.config.html_short_title,
@@ -259,7 +259,7 @@ class HTMLHelpBuilder(StandaloneHTMLBuilder):
if ullevel != 0:
f.write('<UL>\n')
for subnode in node:
- write_toc(subnode, ullevel+1)
+ write_toc(subnode, ullevel + 1)
if ullevel != 0:
f.write('</UL>\n')
elif isinstance(node, addnodes.compact_paragraph):
@@ -275,7 +275,7 @@ class HTMLHelpBuilder(StandaloneHTMLBuilder):
self.info('writing index file...')
index = self.env.create_index(self)
- with self.open_file(outdir, outname+'.hhk') as f:
+ with self.open_file(outdir, outname + '.hhk') as f:
f.write('<UL>\n')
def write_index(title, refs, subitems):