diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2021-09-07 10:29:38 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2021-09-07 10:29:38 +0200 |
commit | 82847df3001b1f8b7d78d36180c02479e45fb4e1 (patch) | |
tree | ee65fca81a86dce44f9090a92823f4b1a3425af3 | |
parent | cd033b5416a86a89920f1240595b7a2e7a9a35a0 (diff) | |
download | searxng-82847df3001b1f8b7d78d36180c02479e45fb4e1.tar.gz searxng-82847df3001b1f8b7d78d36180c02479e45fb4e1.zip |
[fix] add 'categories' to PYLINT_ADDITIONAL_BUILTINS_FOR_ENGINES
androp no longer needed (see line 591 in 7b235a1)::
# pylint: disable=undefined-variable
Suggested-by: @dalf https://github.com/searxng/searxng/issues/102#issuecomment-914068609
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
-rwxr-xr-x | manage | 2 | ||||
-rw-r--r-- | searx/engines/xpath.py | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -37,7 +37,7 @@ PYLINT_SEARX_DISABLE_OPTION="\ I,C,R,\ W0105,W0212,W0511,W0603,W0613,W0621,W0702,W0703,W1401,\ E1136" -PYLINT_ADDITIONAL_BUILTINS_FOR_ENGINES="supported_languages,language_aliases,logger" +PYLINT_ADDITIONAL_BUILTINS_FOR_ENGINES="supported_languages,language_aliases,logger,categories" PYLINT_OPTIONS="-m pylint -j 0 --rcfile .pylintrc" help() { diff --git a/searx/engines/xpath.py b/searx/engines/xpath.py index 3a8d32a6a..a7a5e57ab 100644 --- a/searx/engines/xpath.py +++ b/searx/engines/xpath.py @@ -184,7 +184,7 @@ def response(resp): ''' results = [] dom = html.fromstring(resp.text) - is_onion = 'onions' in categories # pylint: disable=undefined-variable + is_onion = 'onions' in categories if results_xpath: for result in eval_xpath_list(dom, results_xpath): |