mirror of
https://github.com/searxng/searxng.git
synced 2025-09-01 07:48:32 +02:00
[mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
707d6270c8
commit
8205f170ff
155 changed files with 166 additions and 258 deletions
|
@ -26,7 +26,7 @@ results_xpath = './/table[@id="r"]/tr'
|
|||
https_support = True
|
||||
|
||||
|
||||
def request(query, params):
|
||||
def request(query, params): # pylint: disable=unused-argument
|
||||
params['url'] = url.format(from_lang=params['from_lang'][2], to_lang=params['to_lang'][2], query=params['query'])
|
||||
|
||||
return params
|
||||
|
@ -40,7 +40,7 @@ def response(resp):
|
|||
for k, result in enumerate(eval_xpath(dom, results_xpath)[1:]):
|
||||
try:
|
||||
from_result, to_results_raw = eval_xpath(result, './td')
|
||||
except:
|
||||
except: # pylint: disable=bare-except
|
||||
continue
|
||||
|
||||
to_results = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue