]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-34418: Fix HTTPErrorProcessor documentation (GH-8793)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 17 Aug 2018 10:35:52 +0000 (06:35 -0400)
committerBerker Peksag <berker.peksag@gmail.com>
Fri, 17 Aug 2018 10:35:52 +0000 (13:35 +0300)
The http_response() and https_response() methods of the HTTPErrorProcessor
class have two required parameters, 'request' and 'response'.
(cherry picked from commit c53aaec793e018edef4e72a3edbd338b10db10aa)

Co-authored-by: Sebastian Rittau <srittau@rittau.org>
Doc/library/urllib.request.rst

index 3e61de7c52e56c0abd9b9e616d198d63725669b8..0890f74ca793f190bfc232622c29b46c08179d5e 100644 (file)
@@ -1125,7 +1125,7 @@ UnknownHandler Objects
 HTTPErrorProcessor Objects
 --------------------------
 
-.. method:: HTTPErrorProcessor.http_response()
+.. method:: HTTPErrorProcessor.http_response(request, response)
 
    Process HTTP error responses.
 
@@ -1137,7 +1137,7 @@ HTTPErrorProcessor Objects
    :exc:`~urllib.error.HTTPError` if no other handler handles the error.
 
 
-.. method:: HTTPErrorProcessor.https_response()
+.. method:: HTTPErrorProcessor.https_response(request, response)
 
    Process HTTPS error responses.