Update library: requests

This commit is contained in:
Ruud
2014-09-03 16:47:03 +02:00
parent 50a150f570
commit 9e564c49b3
33 changed files with 1071 additions and 647 deletions
+16 -1
View File
@@ -44,7 +44,22 @@ class SSLError(ConnectionError):
class Timeout(RequestException):
"""The request timed out."""
"""The request timed out.
Catching this error will catch both :exc:`ConnectTimeout` and
:exc:`ReadTimeout` errors.
"""
class ConnectTimeout(ConnectionError, Timeout):
"""The request timed out while trying to connect to the server.
Requests that produce this error are safe to retry
"""
class ReadTimeout(Timeout):
"""The server did not send any data in the allotted amount of time."""
class URLRequired(RequestException):