Skip to content
Myr

Fix for v3 in deleting empty proxies.

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

authored by Eric Hansen · committed by Eric Hansen · parent 2dc7db4 · 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/models.py+1 added-1 removed
109 unmodified lines
110111 # Dictionary mapping protocol to the URL of the proxy (e.g. {'http': 'foo.bar:3128'})112 self.proxies = dict(proxies or [])113114 for proxy_type,uri_ref in self.proxies.items():114 for proxy_type,uri_ref in list(self.proxies.items()):115 if not uri_ref:116 del self.proxies[proxy_type]117118 # If no proxies are given, allow configuration by environment variables
770 unmodified lines