Skip to content

Commit

Permalink
remove deprecated code
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel.eades authored and danieleades committed Jan 6, 2023
1 parent 6e6b9ad commit 8cf0b6d
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 8cf0b6d

Please sign in to comment.