summaryrefslogtreecommitdiff
path: root/searx/engines/xpath.py
diff options
context:
space:
mode:
authorasciimoo <asciimoo@gmail.com>2014-02-11 13:13:51 +0100
committerasciimoo <asciimoo@gmail.com>2014-02-11 13:13:51 +0100
commitc1d7d30b8ec2950a6338f0b99ebe9bdc094fdb73 (patch)
treebc2a38ccacc7d94721ab4b3942d83617ef3662f6 /searx/engines/xpath.py
parent239299d45ec7698e45451b617f2ef52bfb2c2e88 (diff)
downloadsearxng-c1d7d30b8ec2950a6338f0b99ebe9bdc094fdb73.tar.gz
searxng-c1d7d30b8ec2950a6338f0b99ebe9bdc094fdb73.zip
[mod] len() removed from conditions
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 04b021e33..9af24de3b 100644
--- a/searx/engines/xpath.py
+++ b/searx/engines/xpath.py
@@ -23,7 +23,7 @@ if xpath_results is a string element, then it's already done
def extract_text(xpath_results):
if type(xpath_results) == list:
# it's list of result : concat everything using recursive call
- if not len(xpath_results):
+ if not xpath_results:
raise Exception('Empty url resultset')
result = ''
for e in xpath_results: