fix pep 8 check

This commit is contained in:
Noémi Ványi 2019-09-30 14:27:13 +02:00
parent a6f20caf32
commit 5796dc60c9
3 changed files with 2 additions and 3 deletions

View File

@ -139,7 +139,6 @@ def load_engine(engine_data):
engine.stats['page_load_time'] = 0 engine.stats['page_load_time'] = 0
engine.stats['page_load_count'] = 0 engine.stats['page_load_count'] = 0
for category_name in engine.categories: for category_name in engine.categories:
categories.setdefault(category_name, []).append(engine) categories.setdefault(category_name, []).append(engine)

View File

@ -103,7 +103,7 @@ def search_one_offline_request(engine, query, request_params):
def search_one_request_safe(engine_name, query, request_params, result_container, start_time, timeout_limit): def search_one_request_safe(engine_name, query, request_params, result_container, start_time, timeout_limit):
if engines[engine_name].offline: if engines[engine_name].offline:
return search_one_offline_request_safe(engine_name, query, request_params, result_container, start_time, timeout_limit) return search_one_offline_request_safe(engine_name, query, request_params, result_container, start_time, timeout_limit) # noqa
return search_one_http_request_safe(engine_name, query, request_params, result_container, start_time, timeout_limit) return search_one_http_request_safe(engine_name, query, request_params, result_container, start_time, timeout_limit)