The timeout is in seconds.
authorCory Benfield <lukasaoz@gmail.com>
Sun, 16 Feb 2014 19:00:22 +0000 (19:00 +0000)
committerCory Benfield <lukasaoz@gmail.com>
Sun, 16 Feb 2014 19:00:22 +0000 (19:00 +0000)
requests/api.py
requests/sessions.py

index baf43dd61303cd832c4c37d7df0e0d63800413de..01d853d5cae6fd270027f19407eae3d266fd38d7 100644 (file)
@@ -26,7 +26,7 @@ def request(method, url, **kwargs):
     :param cookies: (optional) Dict or CookieJar object to send with the :class:`Request`.
     :param files: (optional) Dictionary of 'name': file-like-objects (or {'name': ('filename', fileobj)}) for multipart encoding upload.
     :param auth: (optional) Auth tuple to enable Basic/Digest/Custom HTTP Auth.
-    :param timeout: (optional) Float describing the timeout of the request.
+    :param timeout: (optional) Float describing the timeout of the request in seconds.
     :param allow_redirects: (optional) Boolean. Set to True if POST/PUT/DELETE redirect following is allowed.
     :param proxies: (optional) Dictionary mapping protocol to the URL of the proxy.
     :param verify: (optional) if ``True``, the SSL cert will be verified. A CA_BUNDLE path can also be provided.
index a023e4eca6b8f658142819febb74496ef60f34f0..b2dc1a996c4baa8cd7a4cdd009b0b19f4edafd05 100644 (file)
@@ -328,7 +328,7 @@ class Session(SessionRedirectMixin):
         :param auth: (optional) Auth tuple or callable to enable
             Basic/Digest/Custom HTTP Auth.
         :param timeout: (optional) Float describing the timeout of the
-            request.
+            request in seconds.
         :param allow_redirects: (optional) Boolean. Set to True by default.
         :param proxies: (optional) Dictionary mapping protocol to the URL of
             the proxy.