Skip to content
Myr

Remove some extraneous comments to please KR.

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

authored by Cory Benfield · committed by Cory Benfield · parent 4d8cb32 · Browse files · 1 file+0 added−6 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+0 added−6 removed

  • other:+0 added−6 removed

1 file+0 added−6 removed

modified:requests/sessions.py-6 removed
215 unmodified lines
216 headers = prepared_request.headers217 url = prepared_request.url218 new_proxies = {}219220 # Consider proxies. First evaluate the new proxy config. If we are221 # being redirected to a host on the NO_PROXY list then we want to222 # remove the proxy dictionary entirely. Otherwise, if there's a relevant223 # environment proxy, set it if we don't already have a proxy to go to.220 if not should_bypass_proxies(url):221 environ_proxies = get_environ_proxies(url)222 scheme = urlparse(url).scheme223
1 unmodified line
225 new_proxies.setdefault(scheme, environ_proxies[scheme])226 except KeyError:227 pass228233 # If there's a proxy-authorization header present, remove it, then add234 # a new one (potentially re-adding the one we just removed).229 if 'Proxy-Authorization' in headers:230 del headers['Proxy-Authorization']231232 try:
396 unmodified lines