summaryrefslogtreecommitdiff
path: root/searx/engines/xpath.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/engines/xpath.py')
-rw-r--r--searx/engines/xpath.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/searx/engines/xpath.py b/searx/engines/xpath.py
index 0f88fb29a..8338d5301 100644
--- a/searx/engines/xpath.py
+++ b/searx/engines/xpath.py
@@ -1,6 +1,5 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
# lint: pylint
-# pylint: disable=missing-function-docstring
"""The XPath engine is a *generic* engine with which it is possible to configure
engines in the settings.
@@ -23,9 +22,6 @@ from urllib.parse import urlencode
from lxml import html
from searx.utils import extract_text, extract_url, eval_xpath, eval_xpath_list
-from searx import logger
-
-logger = logger.getChild('XPath engine')
search_url = None
"""
@@ -187,7 +183,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):