mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Pylint fixing.
This commit is contained in:
parent
8125b6b2af
commit
e20e22a1a9
@ -25,8 +25,7 @@ from docutils.frontend import OptionParser
|
||||
from docutils.readers.doctree import Reader as DoctreeReader
|
||||
|
||||
from sphinx import addnodes
|
||||
from sphinx.util import (get_matching_docs, mtimes_of_files,
|
||||
ensuredir, relative_uri, SEP, os_path)
|
||||
from sphinx.util import mtimes_of_files, ensuredir, relative_uri, SEP, os_path
|
||||
from sphinx.htmlhelp import build_hhx
|
||||
from sphinx.htmlwriter import HTMLWriter, HTMLTranslator, SmartyPantsHTMLTranslator
|
||||
from sphinx.latexwriter import LaTeXWriter
|
||||
@ -230,7 +229,8 @@ class Builder(object):
|
||||
self.finish()
|
||||
if self.app._warncount:
|
||||
self.info(bold('build succeeded, %s warning%s.' %
|
||||
(self.app._warncount, self.app._warncount != 1 and 's' or '')))
|
||||
(self.app._warncount,
|
||||
self.app._warncount != 1 and 's' or '')))
|
||||
else:
|
||||
self.info(bold('build succeeded.'))
|
||||
|
||||
|
@ -49,7 +49,7 @@ class CoverageBuilder(Builder):
|
||||
try:
|
||||
self.c_regexes.append((name, re.compile(exp)))
|
||||
except Exception:
|
||||
warnfunc('invalid regex %r in coverage_c_regexes' % exp)
|
||||
self.warn('invalid regex %r in coverage_c_regexes' % exp)
|
||||
|
||||
self.c_ignorexps = {}
|
||||
for (name, exps) in self.config.coverage_ignore_c_items.iteritems():
|
||||
|
Loading…
Reference in New Issue
Block a user