mirror of https://github.com/python/cpython
use the awesome new status iterator
This commit is contained in:
parent
83db7652ca
commit
c5206b3893
|
@ -74,7 +74,9 @@ class PydocTopicsBuilder(Builder):
|
||||||
|
|
||||||
def write(self, *ignored):
|
def write(self, *ignored):
|
||||||
writer = TextWriter(self)
|
writer = TextWriter(self)
|
||||||
for label in self.status_iterator(pydoc_topic_labels, 'building topics... '):
|
for label in self.status_iterator(pydoc_topic_labels,
|
||||||
|
'building topics... ',
|
||||||
|
length=len(pydoc_topic_labels)):
|
||||||
if label not in self.env.labels:
|
if label not in self.env.labels:
|
||||||
self.warn('label %r not in documentation' % label)
|
self.warn('label %r not in documentation' % label)
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue