https://github.com/python/cpython/commit/d5d3adafa71278da574533f30325605d67a1cdec
commit: d5d3adafa71278da574533f30325605d67a1cdec
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: hugovk <[email protected]>
date: 2025-07-22T11:29:40+03:00
summary:

[3.14] gh-135468: Improve ``BaseHandler.http_error_default()`` parameter 
descriptions (GH-136797) (#136825)

Co-authored-by: Valerio Gianella 
<[email protected]>
Co-authored-by: Adam Turner <[email protected]>

files:
M Doc/library/urllib.request.rst

diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst
index 016bc777fbb232..e514b98fc5d553 100644
--- a/Doc/library/urllib.request.rst
+++ b/Doc/library/urllib.request.rst
@@ -832,10 +832,13 @@ The following attribute and methods should only be used 
by classes derived from
    errors.  It will be called automatically by the  :class:`OpenerDirector` 
getting
    the error, and should not normally be called in other circumstances.
 
-   *req* will be a :class:`Request` object, *fp* will be a file-like object 
with
-   the HTTP error body, *code* will be the three-digit code of the error, *msg*
-   will be the user-visible explanation of the code and *hdrs* will be a 
mapping
-   object with the headers of the error.
+   :class:`OpenerDirector` will call this method with five positional 
arguments:
+
+   1. 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.
 
    Return values and exceptions raised should be the same as those of
    :func:`urlopen`.

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to