mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix flake8 violations
This commit is contained in:
@@ -88,7 +88,7 @@ class LaTeXBuilder(Builder):
|
||||
'document %s', docname)
|
||||
continue
|
||||
self.document_data.append(entry) # type: ignore
|
||||
if docname.endswith(SEP+'index'):
|
||||
if docname.endswith(SEP + 'index'):
|
||||
docname = docname[:-5]
|
||||
self.titles.append((docname, entry[2]))
|
||||
|
||||
@@ -207,7 +207,7 @@ class LaTeXBuilder(Builder):
|
||||
if self.images:
|
||||
logger.info(bold('copying images...'), nonl=1)
|
||||
for src, dest in iteritems(self.images):
|
||||
logger.info(' '+src, nonl=1)
|
||||
logger.info(' ' + src, nonl=1)
|
||||
copy_asset_file(path.join(self.srcdir, src),
|
||||
path.join(self.outdir, dest))
|
||||
logger.info('')
|
||||
@@ -225,7 +225,7 @@ class LaTeXBuilder(Builder):
|
||||
if self.config.latex_additional_files:
|
||||
logger.info(bold('copying additional files...'), nonl=1)
|
||||
for filename in self.config.latex_additional_files:
|
||||
logger.info(' '+filename, nonl=1)
|
||||
logger.info(' ' + filename, nonl=1)
|
||||
copy_asset_file(path.join(self.confdir, filename), self.outdir)
|
||||
logger.info('')
|
||||
|
||||
|
||||
@@ -203,7 +203,7 @@ class QtHelpBuilder(StandaloneHTMLBuilder):
|
||||
nspace = nspace.lower()
|
||||
|
||||
# write the project file
|
||||
with codecs.open(path.join(outdir, outname + '.qhp'), 'w', 'utf-8') as f: # type: ignore
|
||||
with codecs.open(path.join(outdir, outname + '.qhp'), 'w', 'utf-8') as f: # type: ignore # NOQA
|
||||
f.write(project_template % { # type: ignore
|
||||
'outname': htmlescape(outname),
|
||||
'title': htmlescape(self.config.html_title),
|
||||
|
||||
Reference in New Issue
Block a user