Merge pull request #4001 from bowlofeggs/seconds

Specify that the timeout parameter is in seconds.
This commit is contained in:
2017-05-07 00:07:02 -04:00
committed by GitHub
+1 -1
View File
@@ -29,7 +29,7 @@ def request(method, url, **kwargs):
defining the content type of the given file and ``custom_headers`` a dict-like object containing additional headers
to add for the file.
:param auth: (optional) Auth tuple to enable Basic/Digest/Custom HTTP Auth.
:param timeout: (optional) How long to wait for the server to send data
:param timeout: (optional) How many seconds to wait for the server to send data
before giving up, as a float, or a :ref:`(connect timeout, read
timeout) <timeouts>` tuple.
:type timeout: float or tuple