From 05d89ef785ab3cb6dd28f10f312f68f8e6a163ce Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Fri, 17 Aug 2018 06:02:08 -0400 Subject: [PATCH] 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 c53aaec793e018edef4e72a3edbd338b10db10aa) Co-authored-by: Sebastian Rittau --- Doc/library/urllib.request.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst index 0a9d9dae218f..cbbec0cd8311 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. -- 2.47.3