Skip to content
Myr

Prevent error when using proxies after picking an Adapter

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

authored by Ian Cordasco · committed by Ian Cordasco · parent 0b68037 · Browse files · 1 file+3 added−0 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+3 added−0 removed

  • other:+3 added−0 removed

1 file+3 added−0 removed

modified:requests/adapters.py+3 added
86 unmodified lines
87 return dict((attr, getattr(self, attr, None)) for attr in88 self.__attrs__)8990 def __setstate__(self, state):91 self.proxy_manager = {}92 self.config = {}9394 for attr, value in state.items():95 setattr(self, attr, value)9697 self.init_poolmanager(self._pool_connections, self._pool_maxsize,
296 unmodified lines