commit: e391b2d970a19cdc39dd550929e91ace4aee8832
parent 5278fa666c193e5ccb30e7b5f8dddf1b053f97ca
Author: jibe-b <user701@orange.fr>
Date: Wed, 27 Sep 2017 16:05:28 +0200
[fix] remove .encode for python3 compatibility
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/searx/engines/arxiv.py b/searx/engines/arxiv.py
@@ -41,7 +41,7 @@ def request(query, params):
def response(resp):
results = []
- search_results = html.fromstring(resp.text.encode('utf-8')).xpath('//entry')
+ search_results = html.fromstring(resp.text).xpath('//entry')
for entry in search_results:
title = entry.xpath('.//title')[0].text