From: Sebastian Rittau Date: Fri, 17 Aug 2018 09:47:32 +0000 (+0200) Subject: bpo-34418: Fix HTTPErrorProcessor documentation (GH-8793) X-Git-Tag: v3.8.0a1~1200 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c53aaec793e018edef4e72a3edbd338b10db10aa;p=python 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'. --- diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst index 0a9d9dae21..cbbec0cd83 100644 --- a/Doc/library/urllib.request.rst +++ b/Doc/library/urllib.request.rst @@ -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.