mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Linkcheck: Derive number of links from the post-transform result
The number of links to check is the number of links in self.hyperlinks, populated by the post-transform.
This commit is contained in:
parent
a71028bf9e
commit
1121e5e8bc
@ -445,14 +445,13 @@ class CheckExternalLinksBuilder(DummyBuilder):
|
||||
|
||||
def finish(self) -> None:
|
||||
logger.info('')
|
||||
n = 0
|
||||
|
||||
for hyperlink in self.hyperlinks.values():
|
||||
self.wqueue.put(hyperlink, False)
|
||||
n += 1
|
||||
|
||||
total_links = len(self.hyperlinks)
|
||||
done = 0
|
||||
while done < n:
|
||||
while done < total_links:
|
||||
self.process_result(self.rqueue.get())
|
||||
done += 1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user