Skip to content

gh-135468: Improve BaseHandler.http_error_default() parameter descriptions #136797

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
merged 4 commits into from
Jul 19, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
indented and fixed whitespace
  • Loading branch information
vgiane committed Jul 19, 2025
commit 98aafdb473fdce62572d10bda993fffcd78efd05
12 changes: 6 additions & 6 deletions Doc/library/urllib.request.rst
Original file line number Diff line number Diff line change
Expand Up @@ -915,14 +915,14 @@ HTTPRedirectHandler Objects
.. method:: HTTPRedirectHandler.http_error_301(req, fp, code, msg, hdrs)

Redirect to the ``Location:`` or ``URI:`` URL. This method is called by the
parent :class:`OpenerDirector` when getting an HTTP 'moved permanently' response.
parent :class:`OpenerDirector` when getting an HTTP 'moved permanently' response.
:class:`OpenerDirector` will call this method with five positional arguments:

* a :class:`Request` object,
* a file-like object with the HTTP error body,
* the three-digit code of the error, as a string,
* the user-visible explanation of the code, as as string, and
* the headers of the error, as a mapping object.
* a :class:`Request` object,
* a file-like object with the HTTP error body,
* the three-digit code of the error, as a string,
* the user-visible explanation of the code, as as string, and
* the headers of the error, as a mapping object.


.. method:: HTTPRedirectHandler.http_error_302(req, fp, code, msg, hdrs)
Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy