From c1d7d30b8ec2950a6338f0b99ebe9bdc094fdb73 Mon Sep 17 00:00:00 2001 From: asciimoo Date: Tue, 11 Feb 2014 13:13:51 +0100 Subject: [mod] len() removed from conditions --- searx/engines/startpage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'searx/engines/startpage.py') 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}) -- cgit v1.2.3-54-g00ecf