From e391b2d970a19cdc39dd550929e91ace4aee8832 Mon Sep 17 00:00:00 2001 From: jibe-b Date: Wed, 27 Sep 2017 16:05:28 +0200 Subject: [PATCH] [fix] remove .encode for python3 compatibility --- searx/engines/arxiv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/engines/arxiv.py b/searx/engines/arxiv.py index 4b6440cbc..826b77690 100644 --- 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