Skip to content

Commit 05d89ef

Browse files
bpo-34418: Fix HTTPErrorProcessor documentation (GH-8793)
The http_response() and https_response() methods of the HTTPErrorProcessor class have two required parameters, 'request' and 'response'. (cherry picked from commit c53aaec) Co-authored-by: Sebastian Rittau <[email protected]>
1 parent 870247a commit 05d89ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/urllib.request.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,7 +1125,7 @@ UnknownHandler Objects
11251125
HTTPErrorProcessor Objects
11261126
--------------------------
11271127

1128-
.. method:: HTTPErrorProcessor.http_response()
1128+
.. method:: HTTPErrorProcessor.http_response(request, response)
11291129

11301130
Process HTTP error responses.
11311131

@@ -1137,7 +1137,7 @@ HTTPErrorProcessor Objects
11371137
:exc:`~urllib.error.HTTPError` if no other handler handles the error.
11381138

11391139

1140-
.. method:: HTTPErrorProcessor.https_response()
1140+
.. method:: HTTPErrorProcessor.https_response(request, response)
11411141

11421142
Process HTTPS error responses.
11431143

0 commit comments

Comments
 (0)