Skip to content

Commit f4b991a

Browse files
miss-islingtonvgianeAA-Turner
authored
[3.13] gh-135468: Improve BaseHandler.http_error_default() parameter descriptions (GH-136797) (#136826)
Co-authored-by: Valerio Gianella <49408327+valeriogianella@users.noreply.github.com> Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
1 parent 2d0fac4 commit f4b991a

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Doc/library/urllib.request.rst

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -784,10 +784,13 @@ The following attribute and methods should only be used by classes derived from
784784
errors. It will be called automatically by the :class:`OpenerDirector` getting
785785
the error, and should not normally be called in other circumstances.
786786

787-
*req* will be a :class:`Request` object, *fp* will be a file-like object with
788-
the HTTP error body, *code* will be the three-digit code of the error, *msg*
789-
will be the user-visible explanation of the code and *hdrs* will be a mapping
790-
object with the headers of the error.
787+
:class:`OpenerDirector` will call this method with five positional arguments:
788+
789+
1. a :class:`Request` object,
790+
#. a file-like object with the HTTP error body,
791+
#. the three-digit code of the error, as a string,
792+
#. the user-visible explanation of the code, as as string, and
793+
#. the headers of the error, as a mapping object.
791794

792795
Return values and exceptions raised should be the same as those of
793796
:func:`urlopen`.

0 commit comments

Comments
 (0)
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