Skip to content
Myr

fix adapters.py

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 8a2014e · Browse files · 1 file+15 added−14 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+15 added−14 removed

  • other:+15 added−14 removed

1 file+15 added−14 removed

modified:requests/adapters.py+15 added-14 removed
9 unmodified lines
1011import os.path12import socket1314from urllib3.poolmanager import PoolManager, proxy_from_url15from urllib3.response import HTTPResponse16from urllib3.util import Timeout as TimeoutSauce17from urllib3.util.retry import Retry18from urllib3.exceptions import ClosedPoolError19from urllib3.exceptions import ConnectTimeoutError20from urllib3.exceptions import HTTPError as _HTTPError21from urllib3.exceptions import MaxRetryError22from urllib3.exceptions import NewConnectionError23from urllib3.exceptions import ProxyError as _ProxyError24from urllib3.exceptions import ProtocolError25from urllib3.exceptions import ReadTimeoutError26from urllib3.exceptions import SSLError as _SSLError27from urllib3.exceptions import ResponseError2829from .models import Response15from .packages.urllib3.poolmanager import PoolManager, proxy_from_url16from .packages.urllib3.response import HTTPResponse17from .packages.urllib3.util import Timeout as TimeoutSauce18from .packages.urllib3.util.retry import Retry30from .compat import urlparse, basestring31from .utils import (DEFAULT_CA_BUNDLE_PATH, get_encoding_from_headers,32 prepend_scheme_if_needed, get_auth_from_url, urldefragauth,33 select_proxy)34from .structures import CaseInsensitiveDict24from .packages.urllib3.exceptions import ClosedPoolError25from .packages.urllib3.exceptions import ConnectTimeoutError26from .packages.urllib3.exceptions import HTTPError as _HTTPError27from .packages.urllib3.exceptions import MaxRetryError28from .packages.urllib3.exceptions import NewConnectionError29from .packages.urllib3.exceptions import ProxyError as _ProxyError30from .packages.urllib3.exceptions import ProtocolError31from .packages.urllib3.exceptions import ReadTimeoutError32from .packages.urllib3.exceptions import SSLError as _SSLError33from .packages.urllib3.exceptions import ResponseError35from .cookies import extract_cookies_to_jar36from .exceptions import (ConnectionError, ConnectTimeout, ReadTimeout, SSLError,37 ProxyError, RetryError, InvalidSchema)38from .auth import _basic_auth_str
482 unmodified lines