Skip to content

Commit

Permalink
Remove deprecated code in sphinx.builders.linkcheck (#11089)
Browse files Browse the repository at this point in the history
Co-authored-by: daniel.eades <daniel.eades@hotmail.com>
  • Loading branch information
danieleades and daniel.eades committed Mar 17, 2023
1 parent c8f5e14 commit 2f03886
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions sphinx/builders/linkcheck.py
Expand Up @@ -422,15 +422,11 @@ def check(docname: str) -> tuple[str, str, int]:

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
Expand Down

0 comments on commit 2f03886

Please sign in to comment.