summaryrefslogtreecommitdiff
path: root/searx/engines/startpage.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/startpage.py
parent239299d45ec7698e45451b617f2ef52bfb2c2e88 (diff)
downloadsearxng-c1d7d30b8ec2950a6338f0b99ebe9bdc094fdb73.tar.gz
searxng-c1d7d30b8ec2950a6338f0b99ebe9bdc094fdb73.zip
[mod] len() removed from conditions
Diffstat (limited to 'searx/engines/startpage.py')
-rw-r--r--searx/engines/startpage.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/startpage.py b/searx/engines/startpage.py
index fcfc21160..cbafe0976 100644
--- a/searx/engines/startpage.py
+++ b/searx/engines/startpage.py
@@ -35,7 +35,7 @@ def response(resp):
title = link.text_content()
content = ''
- if len(result.xpath('./p[@class="desc"]')):
+ if result.xpath('./p[@class="desc"]'):
content = result.xpath('./p[@class="desc"]')[0].text_content()
results.append({'url': url, 'title': title, 'content': content})