diff options
author | Cqoicebordel <Cqoicebordel@users.noreply.github.com> | 2014-12-29 21:31:04 +0100 |
---|---|---|
committer | Cqoicebordel <Cqoicebordel@users.noreply.github.com> | 2014-12-29 21:31:04 +0100 |
commit | 5d977056f7aa216eae09a22c3baaff73546f6ff1 (patch) | |
tree | ffd08f6bc1d3268ec6ce8031cbdec7987dfd3763 /searx/search.py | |
parent | 576fdef440e835592f9f5c8dc25398e343687c7a (diff) | |
download | searxng-5d977056f7aa216eae09a22c3baaff73546f6ff1.tar.gz searxng-5d977056f7aa216eae09a22c3baaff73546f6ff1.zip |
Flake8 and Twitter corrections
Lots of Flake8 corrections
Maybe we should change the rule to allow lines of 120 chars. It seems more usable.
Big twitter correction : now it outputs the words in right order...
Diffstat (limited to 'searx/search.py')
-rw-r--r-- | searx/search.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/searx/search.py b/searx/search.py index d1d03805f..fbbf3fe41 100644 --- a/searx/search.py +++ b/searx/search.py @@ -69,11 +69,16 @@ def threaded_requests(requests): print('engine timeout: {0}'.format(th._engine_name)) - # get default reqest parameter def default_request_params(): return { - 'method': 'GET', 'headers': {}, 'data': {}, 'url': '', 'cookies': {}, 'verify': True} + 'method': 'GET', + 'headers': {}, + 'data': {}, + 'url': '', + 'cookies': {}, + 'verify': True + } # create a callback wrapper for the search engine results @@ -487,14 +492,15 @@ class Search(object): continue # append request to list - requests.append((req, request_params['url'], request_args, selected_engine['name'])) + requests.append((req, request_params['url'], + request_args, + selected_engine['name'])) if not requests: return results, suggestions, answers, infoboxes # send all search-request threaded_requests(requests) - while not results_queue.empty(): engine_name, engine_results = results_queue.get_nowait() |