cleanup
authorKenneth Reitz <me@kennethreitz.com>
Mon, 26 Sep 2011 04:04:38 +0000 (00:04 -0400)
committerKenneth Reitz <me@kennethreitz.com>
Mon, 26 Sep 2011 04:04:38 +0000 (00:04 -0400)
requests/models.py

index adf292750057607d4af20bc68d43a00a488d9e1b..6b88280242982d245350b072ef7b9ca93636eebb 100644 (file)
@@ -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)