summaryrefslogtreecommitdiff
path: root/searx/engines
diff options
context:
space:
mode:
Diffstat (limited to 'searx/engines')
-rw-r--r--searx/engines/xpath.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/searx/engines/xpath.py b/searx/engines/xpath.py
index d420e250a..1507176ec 100644
--- a/searx/engines/xpath.py
+++ b/searx/engines/xpath.py
@@ -7,7 +7,6 @@ url_xpath = None
content_xpath = None
title_xpath = None
thumbnail_xpath = False
-categories = []
paging = False
suggestion_xpath = ''
results_xpath = ''
@@ -39,7 +38,7 @@ def request(query, params):
def response(resp):
results = []
dom = html.fromstring(resp.text)
- is_onion = True if 'onions' in categories else False
+ is_onion = True if 'onions' in categories else False # pylint: disable=undefined-variable
if results_xpath:
for result in eval_xpath_list(dom, results_xpath):