Skip to content
Myr

Move comment to the right place

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 d3f3b42 · Browse files · 1 file+2 added−5 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+2 added−5 removed

  • other:+2 added−5 removed

1 file+2 added−5 removed

modified:requests/adapters.py+2 added-5 removed
86 unmodified lines
87 return dict((attr, getattr(self, attr, None)) for attr in88 self.__attrs__)8990 def __setstate__(self, state):91 # Can't handle by adding 'proxy_manager' to self.__attrs__ because92 # because self.poolmanager uses a lambda function, which isn't pickleable.93 self.proxy_manager = {}94 self.config = {}9596 for attr, value in state.items():
1 unmodified line
9899 self.init_poolmanager(self._pool_connections, self._pool_maxsize,100 block=self._pool_block)101100 # Can't handle by adding 'proxy_manager' to self.__attrs__ because101 # because self.poolmanager uses a lambda function, which isn't pickleable.102 if not hasattr(self, 'proxy_manager'):103 self.proxy_manager = {}104102 def init_poolmanager(self, connections, maxsize, block=DEFAULT_POOLBLOCK):103 """Initializes a urllib3 PoolManager. This method should not be called104 from user code, and is only exposed for use when subclassing the105 :class:`HTTPAdapter <requests.adapters.HTTPAdapter>`.
290 unmodified lines