Skip to content
Browse files

Fix for v3 in deleting empty proxies.

  • Loading branch information...
1 parent 2dc7db4 commit 65c19bc0e0c44da54ff46d2237264800e2f2238f @SecurityForUs SecurityForUs committed Sep 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 requests/models.py
View
2 requests/models.py
@@ -111,7 +111,7 @@ def __init__(self,
# 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]

0 comments on commit 65c19bc

Please sign in to comment.
Something went wrong with that request. Please try again.