From 82847df3001b1f8b7d78d36180c02479e45fb4e1 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Tue, 7 Sep 2021 10:29:38 +0200 Subject: [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 --- searx/engines/xpath.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'searx/engines/xpath.py') 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): -- cgit v1.2.3