Fix default for verbosity option (crashes on Py3).

This commit is contained in:
Georg Brandl 2014-09-22 21:28:30 +02:00
parent 4197144f96
commit d44efd6254
2 changed files with 2 additions and 3 deletions

View File

@ -237,8 +237,7 @@ class Builder(object):
First updates the environment, and then calls :meth:`write`.
"""
if summary:
self.info(bold('building [%s]: ' % self.name), nonl=1)
self.info(summary)
self.info(bold('building [%s]' % self.name) + ': ' + summary)
updated_docnames = set()
# while reading, collect all warnings from docutils

View File

@ -107,7 +107,7 @@ def main(argv):
help='nit-picky mode, warn about all missing references')
group = parser.add_option_group('Console output options')
group.add_option('-v', action='count', dest='verbosity',
group.add_option('-v', action='count', dest='verbosity', default=0,
help='increase verbosity (can be repeated)')
group.add_option('-q', action='store_true', dest='quiet',
help='no output on stdout, just warnings on stderr')