Prevent error when using proxies after picking an Adapter

This commit is contained in:
Ian Cordasco
2013-12-12 13:03:37 -06:00
parent 0b680379e5
commit cac2077c36
+3
View File
@@ -88,6 +88,9 @@ class HTTPAdapter(BaseAdapter):
self.__attrs__)
def __setstate__(self, state):
self.proxy_manager = {}
self.config = {}
for attr, value in state.items():
setattr(self, attr, value)