summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSebastian Rittau <srittau@rittau.org>2018-08-17 09:47:32 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2018-08-17 09:47:32 (GMT)
commitc53aaec793e018edef4e72a3edbd338b10db10aa (patch)
tree4a58596aabbfd9df1cc0b936320b6de00588aca9 /Doc
parent1590c393360df059160145e7475754427bfc6680 (diff)
downloadcpython-c53aaec793e018edef4e72a3edbd338b10db10aa.zip
cpython-c53aaec793e018edef4e72a3edbd338b10db10aa.tar.gz
cpython-c53aaec793e018edef4e72a3edbd338b10db10aa.tar.bz2
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'.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/urllib.request.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst
index 0a9d9da..cbbec0c 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.