8000 gh-130283: update deprecated links and examples in `urllib.request` docs by Mr-Sunglasses · Pull Request #130284 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-130283: update deprecated links and examples in urllib.request docs #130284

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

Merged
Prev Previous commit
Next Next commit
Apply suggestions from code review
  • Loading branch information
picnixz authored Mar 23, 2025
commit 0c4d55e39dfdb2a29ebf13ab700f35c59de89841
4 changes: 2 additions & 2 deletions Doc/library/urllib.request.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1229,11 +1229,11 @@ it receives from the HTTP server. In general, a program will decode
the returned bytes object to string once it determines or guesses
the appropriate encoding.

The following HTML spec document, https://html.spec.whatwg.org/#charset\ , lists
The following HTML spec document, https://html.spec.whatwg.org/#charset, lists
the various ways in which an HTML document could have specified its
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

XML is still covered by the document but they explicitly don't say "XHTML".

encoding information.

For additional information, see the W3C document: https://www.w3.org/International/questions/qa-html-encoding-declarations\ .
For additional information, see the W3C document: https://www.w3.org/International/questions/qa-html-encoding-declarations.

As the python.org website uses *utf-8* encoding as specified in its meta tag, we
will use the same for decoding the bytes object::
4484 Expand Down
Loading
0