From 053613688bcabb05818403014dc594bfdc2cbe22 Mon Sep 17 00:00:00 2001 From: Randy Merrill Date: Sat, 11 May 2013 18:04:43 -0700 Subject: [PATCH] Moving the order of the arguments in the init to not interfere with existing usage. --- requests/adapters.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/requests/adapters.py b/requests/adapters.py index d6952ca..7d7b822 100644 --- a/requests/adapters.py +++ b/requests/adapters.py @@ -54,6 +54,7 @@ class HTTPAdapter(BaseAdapter): :param pool_connections: The number of urllib3 connection pools to cache. :param pool_maxsize: The maximum number of connections to save in the pool. :param max_retries: The maximum number of retries each connection should attempt. + :param pool_block: Whether the connection pool should block for connections. Usage:: @@ -65,8 +66,8 @@ class HTTPAdapter(BaseAdapter): __attrs__ = ['max_retries', 'config', '_pool_connections', '_pool_maxsize'] def __init__(self, pool_connections=DEFAULT_POOLSIZE, - pool_maxsize=DEFAULT_POOLSIZE, pool_block=DEFAULT_POOLBLOCK, - max_retries=DEFAULT_RETRIES): + pool_maxsize=DEFAULT_POOLSIZE, max_retries=DEFAULT_RETRIES, + pool_block=DEFAULT_POOLBLOCK): self.max_retries = max_retries self.config = {} -- 2.7.4