From: Kenneth Reitz Date: Mon, 26 Sep 2011 04:04:38 +0000 (-0400) Subject: cleanup X-Git-Tag: v0.8.0~94^2~47 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a7d280cb3d9e24ceb9330b7157cf4e4d985c7a60;p=services%2Fpython-requests.git cleanup --- diff --git a/requests/models.py b/requests/models.py index adf2927..6b88280 100644 --- a/requests/models.py +++ b/requests/models.py @@ -260,11 +260,11 @@ class Request(object): try: # Create a new HTTP connection, since one wasn't passed in. if not self._pools: + # Create a pool manager for this one connection. pools = PoolManager( num_pools=self.config.get('max_connections'), - maxsize=1 - ) + maxsize=1) # Create a connection. connection = pools.connection_from_url(url, timeout=self.timeout)