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

View File

@ -494,7 +494,7 @@ class BuildEnvironment(object):
# this cache also needs to be updated every time # this cache also needs to be updated every time
self._nitpick_ignore = set(self.config.nitpick_ignore) 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) added, changed, removed = self.get_outdated_files(config_changed)