mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Use boolean value to Sphinx.info()
This commit is contained in:
parent
c5ce00b448
commit
6c6ea35524
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user