Pylint fixing.

This commit is contained in:
Georg Brandl 2008-03-26 13:21:39 +00:00
parent 8125b6b2af
commit e20e22a1a9
2 changed files with 4 additions and 4 deletions

View File

@ -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.'))

View File

@ -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():