Remove deprecated code in `sphinx.builders.linkcheck` (#11089)

Co-authored-by: daniel.eades <daniel.eades@hotmail.com>
This commit is contained in:
danieleades
2023-03-17 15:24:38 +00:00
committed by GitHub
parent c8f5e14488
commit 2f03886d55

View File

@@ -422,15 +422,11 @@ class HyperlinkAvailabilityCheckWorker(Thread):
while True:
check_request = self.wqueue.get()
try:
next_check, hyperlink = check_request
if hyperlink is None:
break
next_check, hyperlink = check_request
if hyperlink is None:
break
uri, docname, lineno = hyperlink
except ValueError:
# old styled check_request (will be deprecated in Sphinx-5.0)
next_check, uri, docname, lineno = check_request # type: ignore[misc]
uri, docname, lineno = hyperlink
if uri is None:
break