Use boolean value to Sphinx.info()

This commit is contained in:
Takeshi KOMIYA 2016-11-17 20:29:55 +09:00
parent c5ce00b448
commit 6c6ea35524
2 changed files with 4 additions and 4 deletions

View File

@ -463,9 +463,9 @@ class Sphinx(object):
l = 0
for item in iterable:
if l == 0:
self.info(bold(summary), nonl=1)
self.info(bold(summary), nonl=True)
l = 1
self.info(colorfunc(stringify_func(item)) + ' ', nonl=1)
self.info(colorfunc(stringify_func(item)) + ' ', nonl=True)
yield item
if l == 1:
self.info()
@ -488,7 +488,7 @@ class Sphinx(object):
s += '\n'
else:
s = term_width_line(s)
self.info(s, nonl=1)
self.info(s, nonl=True)
yield item
if l > 0:
self.info()

View File

@ -494,7 +494,7 @@ class BuildEnvironment(object):
# this cache also needs to be updated every time
self._nitpick_ignore = set(self.config.nitpick_ignore)
app.info(bold('updating environment: '), nonl=1)
app.info(bold('updating environment: '), nonl=True)
added, changed, removed = self.get_outdated_files(config_changed)