Skip to content
Myr

fix

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 6d3d5e5 · Browse files · 1 file+3 added−3 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+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:requests/adapters.py+3 added-3 removed
36 unmodified lines
37 ProxyError, RetryError, InvalidSchema)38from .auth import _basic_auth_str3940try:41 from .packages.urllib3.contrib.socks import SOCKSProxyManager41 from urllib3.contrib.socks import SOCKSProxyManager42except ImportError:43 def SOCKSProxyManager(*args, **kwargs):44 raise InvalidSchema("Missing dependencies for SOCKS support.")45
124 unmodified lines
170171 :param proxy: The proxy to return a urllib3 ProxyManager for.172 :param proxy_kwargs: Extra keyword arguments used to configure the Proxy Manager.173 :returns: ProxyManager174 :rtype: requests.packages.urllib3.ProxyManager174 :rtype: urllib3.ProxyManager175 """176 if proxy in self.proxy_manager:177 manager = self.proxy_manager[proxy]178 elif proxy.lower().startswith('socks'):
114 unmodified lines
293 :class:`HTTPAdapter <requests.adapters.HTTPAdapter>`.294295 :param url: The URL to connect to.296 :param proxies: (optional) A Requests-style dictionary of proxies used on this request.297 :rtype: requests.packages.urllib3.ConnectionPool297 :rtype: urllib3.ConnectionPool298 """299 proxy = select_proxy(url, proxies)300301 if proxy:
219 unmodified lines