diff options
author | Guilhem Bonnefille <guilhem.bonnefille@gmail.com> | 2016-05-02 19:25:09 +0200 |
---|---|---|
committer | Guilhem Bonnefille <guilhem.bonnefille@gmail.com> | 2016-05-02 19:25:09 +0200 |
commit | 3f395304f96a7c71390dd0a79d0ba2b3c404d504 (patch) | |
tree | 55a3c62ab88b55158c71ebdd27623ebee123a4b5 /searx/poolrequests.py | |
parent | f18a3a77ef894d6563543fe449321e52b16e93ad (diff) | |
download | searxng-3f395304f96a7c71390dd0a79d0ba2b3c404d504.tar.gz searxng-3f395304f96a7c71390dd0a79d0ba2b3c404d504.zip |
Fix pep8
Diffstat (limited to 'searx/poolrequests.py')
-rw-r--r-- | searx/poolrequests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/searx/poolrequests.py b/searx/poolrequests.py index 54e8dbcf6..f268df207 100644 --- a/searx/poolrequests.py +++ b/searx/poolrequests.py @@ -41,14 +41,14 @@ class HTTPAdapterWithConnParams(requests.adapters.HTTPAdapter): block=self._pool_block, **self._conn_params) -connect=settings['outgoing'].get('pool_connections', 100) # Magic number kept from previous code -maxsize=settings['outgoing'].get('pool_maxsize', requests.adapters.DEFAULT_POOLSIZE) # Picked from constructor +connect = settings['outgoing'].get('pool_connections', 100) # Magic number kept from previous code +maxsize = settings['outgoing'].get('pool_maxsize', requests.adapters.DEFAULT_POOLSIZE) # Picked from constructor if settings['outgoing'].get('source_ips'): http_adapters = cycle(HTTPAdapterWithConnParams(pool_connections=connect, pool_maxsize=maxsize, source_address=(source_ip, 0)) for source_ip in settings['outgoing']['source_ips']) https_adapters = cycle(HTTPAdapterWithConnParams(pool_connections=connect, pool_maxsize=maxsize, - source_address=(source_ip, 0)) + source_address=(source_ip, 0)) for source_ip in settings['outgoing']['source_ips']) else: http_adapters = cycle((HTTPAdapterWithConnParams(pool_connections=connect, pool_maxsize=maxsize), )) |