Fix for v3 in deleting empty proxies.

This commit is contained in:
Eric Hansen
2012-09-12 13:49:34 -04:00
parent 2dc7db4730
commit 65c19bc0e0
+1 -1
View File
@@ -111,7 +111,7 @@ class Request(object):
# Dictionary mapping protocol to the URL of the proxy (e.g. {'http': 'foo.bar:3128'})
self.proxies = dict(proxies or [])
for proxy_type,uri_ref in self.proxies.items():
for proxy_type,uri_ref in list(self.proxies.items()):
if not uri_ref:
del self.proxies[proxy_type]