Skip to content
Myr

Import urllib3's Retry location from the right place

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

Importing from urllib3's top-level location causes the namespace to be urllib3.util.retry.Retry instead of requests.packages.urllib3.util.retry.Retry. Without this fix, an using requests with an un-vendored version of urllib3 will break when urllib3's retry handling kicks in. Closes shazow/urllib3#567

authored by Ian Cordasco · committed by Ian Cordasco · parent 9adaae6 · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:requests/adapters.py+1 added-1 removed
9 unmodified lines
1011import socket1213from .models import Response14from .packages.urllib3 import Retry14from .packages.urllib3.poolmanager import PoolManager, proxy_from_url15from .packages.urllib3.response import HTTPResponse16from .packages.urllib3.util import Timeout as TimeoutSauce17from .packages.urllib3.util.retry import Retry18from .compat import urlparse, basestring19from .utils import (DEFAULT_CA_BUNDLE_PATH, get_encoding_from_headers,20 prepend_scheme_if_needed, get_auth_from_url, urldefragauth)21from .structures import CaseInsensitiveDict
416 unmodified lines