Skip to content
Myr

Moving the order of the arguments in the init to not interfere with existing usage.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Randy Merrill · committed by Randy Merrill · parent 2eb6826 · Browse files · 1 file+3 added−2 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+3 added−2 removed

  • other:+3 added−2 removed

1 file+3 added−2 removed

modified:requests/adapters.py+3 added-2 removed
52 unmodified lines
5354 :param pool_connections: The number of urllib3 connection pools to cache.55 :param pool_maxsize: The maximum number of connections to save in the pool.56 :param max_retries: The maximum number of retries each connection should attempt.57 :param pool_block: Whether the connection pool should block for connections.5859 Usage::6061 >>> import requests
3 unmodified lines
65 """66 __attrs__ = ['max_retries', 'config', '_pool_connections', '_pool_maxsize']6768 def __init__(self, pool_connections=DEFAULT_POOLSIZE,68 pool_maxsize=DEFAULT_POOLSIZE, pool_block=DEFAULT_POOLBLOCK,69 max_retries=DEFAULT_RETRIES):69 pool_maxsize=DEFAULT_POOLSIZE, max_retries=DEFAULT_RETRIES,70 pool_block=DEFAULT_POOLBLOCK):71 self.max_retries = max_retries72 self.config = {}7374 super(HTTPAdapter, self).__init__()
266 unmodified lines