]> granicus.if.org Git - python/commitdiff
bpo-34418: Fix HTTPErrorProcessor documentation (GH-8793)
authorSebastian Rittau <srittau@rittau.org>
Fri, 17 Aug 2018 09:47:32 +0000 (11:47 +0200)
committerBerker Peksag <berker.peksag@gmail.com>
Fri, 17 Aug 2018 09:47:32 +0000 (12:47 +0300)
The http_response() and https_response() methods of the HTTPErrorProcessor
class have two required parameters, 'request' and 'response'.

Doc/library/urllib.request.rst

index 0a9d9dae218f65db4b551cb1901259f009b57dde..cbbec0cd83118315907fd3f06bccf32938c0f876 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.