diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-08-17 10:35:52 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2018-08-17 10:35:52 (GMT) |
commit | 02c4d4b6dcd772ec3a7fdca517118f3fa53b0b88 (patch) | |
tree | b546e66d7c1570f9c6d26a32d533d5e76d92f496 | |
parent | cabe916dc694997d4892b58986e73a713d5a2f8d (diff) | |
download | cpython-02c4d4b6dcd772ec3a7fdca517118f3fa53b0b88.zip cpython-02c4d4b6dcd772ec3a7fdca517118f3fa53b0b88.tar.gz cpython-02c4d4b6dcd772ec3a7fdca517118f3fa53b0b88.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'.
(cherry picked from commit c53aaec793e018edef4e72a3edbd338b10db10aa)
Co-authored-by: Sebastian Rittau <srittau@rittau.org>
-rw-r--r-- | Doc/library/urllib.request.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst index 3e61de7..0890f74 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. |