Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated code in sphinx.builders.linkcheck #11089

Merged
merged 2 commits into from Mar 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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