From: Randy Merrill Date: Sun, 12 May 2013 01:13:08 +0000 (-0700) Subject: Fixing the call to init_poolmanagers to correctly unpickle the adapter. X-Git-Tag: v1.2.2~4^2^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9cb3d6444d7c2e2787267874f59c271cd2bcf1be;p=services%2Fpython-requests.git Fixing the call to init_poolmanagers to correctly unpickle the adapter. --- diff --git a/requests/adapters.py b/requests/adapters.py index 7d7b822..97840f9 100644 --- a/requests/adapters.py +++ b/requests/adapters.py @@ -87,7 +87,8 @@ class HTTPAdapter(BaseAdapter): for attr, value in state.items(): setattr(self, attr, value) - self.init_poolmanager(self._pool_connections, self._pool_maxsize) + self.init_poolmanager(self._pool_connections, self._pool_maxsize, + block=self._pool_block) def init_poolmanager(self, connections, maxsize, block=DEFAULT_POOLBLOCK): """Initializes a urllib3 PoolManager. This method should not be called