summaryrefslogtreecommitdiff
path: root/searx/engines/xpath.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-09-07 10:43:16 +0200
committerGitHub <noreply@github.com>2021-09-07 10:43:16 +0200
commit9ef7f38e4f20bad5a76867aa3e5049a92bc58e59 (patch)
treeee65fca81a86dce44f9090a92823f4b1a3425af3 /searx/engines/xpath.py
parentf869e73d2fdfc5a4e24e4a0bc1e4da28b81e261b (diff)
parent82847df3001b1f8b7d78d36180c02479e45fb4e1 (diff)
Merge pull request #300 from return42/fix-engine-pylint
[fix] drop useless pylint: disable=undefined-variable
Diffstat (limited to 'searx/engines/xpath.py')
-rw-r--r--searx/engines/xpath.py2
1 files changed, 1 insertions, 1 deletions
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):