/
opt
/
alt
/
python27
/
lib
/
python2.7
/
site-packages
/
requests
/
/opt/alt/python27/lib/python2.7/site-packages/requests
mkdir
upload
Name
Size
Mode
Actions
packages/
-
0755
rm
adapters.py
18680
0644
edit
dl
rm
adapters.pyc
17204
0644
edit
dl
rm
adapters.pyo
17204
0644
edit
dl
rm
api.py
5795
0644
edit
dl
rm
api.pyc
6633
0644
edit
dl
rm
api.pyo
6633
0644
edit
dl
rm
auth.py
8075
0644
edit
dl
rm
auth.pyc
9077
0644
edit
dl
rm
auth.pyo
9077
0644
edit
dl
rm
certs.py
649
0644
edit
dl
rm
certs.pyc
923
0644
edit
dl
rm
certs.pyo
923
0644
edit
dl
rm
compat.py
1549
0644
edit
dl
rm
compat.pyc
1707
0644
edit
dl
rm
compat.pyo
1707
0644
edit
dl
rm
cookies.py
17564
0644
edit
dl
rm
cookies.pyc
21709
0644
edit
dl
rm
cookies.pyo
21709
0644
edit
dl
rm
exceptions.py
2776
0644
edit
dl
rm
exceptions.pyc
6121
0644
edit
dl
rm
exceptions.pyo
6121
0644
edit
dl
rm
hooks.py
767
0644
edit
dl
rm
hooks.pyc
1240
0644
edit
dl
rm
hooks.pyo
1240
0644
edit
dl
rm
models.py
29530
0644
edit
dl
rm
models.pyc
26409
0644
edit
dl
rm
models.pyo
26409
0644
edit
dl
rm
sessions.py
24897
0644
edit
dl
rm
sessions.pyc
20548
0644
edit
dl
rm
sessions.pyo
20548
0644
edit
dl
rm
status_codes.py
3315
0644
edit
dl
rm
status_codes.pyc
4629
0644
edit
dl
rm
status_codes.pyo
4629
0644
edit
dl
rm
structures.py
3017
0644
edit
dl
rm
structures.pyc
5445
0644
edit
dl
rm
structures.pyo
5445
0644
edit
dl
rm
utils.py
22228
0644
edit
dl
rm
utils.pyc
21664
0644
edit
dl
rm
utils.pyo
21664
0644
edit
dl
rm
__init__.py
2215
0644
edit
dl
rm
__init__.pyc
2868
0644
edit
dl
rm
__init__.pyo
2868
0644
edit
dl
rm
Edit:
/opt/alt/python27/lib/python2.7/site-packages/requests/exceptions.py
(2776B)
# -*- coding: utf-8 -*- """ requests.exceptions ~~~~~~~~~~~~~~~~~~~ This module contains the set of Requests' exceptions. """ from .packages.urllib3.exceptions import HTTPError as BaseHTTPError class RequestException(IOError): """There was an ambiguous exception that occurred while handling your request.""" def __init__(self, *args, **kwargs): """ Initialize RequestException with `request` and `response` objects. """ response = kwargs.pop('response', None) self.response = response self.request = kwargs.pop('request', None) if (response is not None and not self.request and hasattr(response, 'request')): self.request = self.response.request super(RequestException, self).__init__(*args, **kwargs) class HTTPError(RequestException): """An HTTP error occurred.""" class ConnectionError(RequestException): """A Connection error occurred.""" class ProxyError(ConnectionError): """A proxy error occurred.""" class SSLError(ConnectionError): """An SSL error occurred.""" class Timeout(RequestException): """The request timed out. Catching this error will catch both :exc:`~requests.exceptions.ConnectTimeout` and :exc:`~requests.exceptions.ReadTimeout` errors. """ class ConnectTimeout(ConnectionError, Timeout): """The request timed out while trying to connect to the remote server. Requests that produced 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): """A valid URL is required to make a request.""" class TooManyRedirects(RequestException): """Too many redirects.""" class MissingSchema(RequestException, ValueError): """The URL schema (e.g. http or https) is missing.""" class InvalidSchema(RequestException, ValueError): """See defaults.py for valid schemas.""" class InvalidURL(RequestException, ValueError): """ The URL provided was somehow invalid. """ class ChunkedEncodingError(RequestException): """The server declared chunked encoding but sent an invalid chunk.""" class ContentDecodingError(RequestException, BaseHTTPError): """Failed to decode response content""" class StreamConsumedError(RequestException, TypeError): """The content for this response was already consumed""" class RetryError(RequestException): """Custom retries logic failed""" # Warnings class RequestsWarning(Warning): """Base warning for Requests.""" pass class FileModeWarning(RequestsWarning, DeprecationWarning): """ A file was opened in text mode, but Requests determined its binary length. """ pass
Save
cmd:
run