mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-09-03 20:52:55 -05:00
Use boolean value to Sphinx.info()
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user