Skip to content
Myr

Only compute should_bypass_proxies if needed

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

authored by Nate Prewitt · committed by Nate Prewitt · parent d096599 · Browse files · 1 file+1 added−2 removed
This commit

State

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

Trailers

  • Co-authored-by: David Black <dblack@atlassian.com>

Diff stats

1 file+1 added−2 removed

  • other:+1 added−2 removed

1 file+1 added−2 removed

modified:requests/utils.py+1 added-2 removed
848 unmodified lines
849 scheme = urlparse(url).scheme850 no_proxy = proxies.get('no_proxy')851 new_proxies = proxies.copy()852853 bypass_proxy = should_bypass_proxies(url, no_proxy=no_proxy)854 if trust_env and not bypass_proxy:853 if trust_env and not should_bypass_proxies(url, no_proxy=no_proxy):854 environ_proxies = get_environ_proxies(url, no_proxy=no_proxy)855856 proxy = environ_proxies.get(scheme, environ_proxies.get('all'))857
190 unmodified lines