summaryrefslogtreecommitdiff
path: root/searx/engines/arxiv.py
diff options
context:
space:
mode:
authorjibe-b <user701@orange.fr>2017-09-27 16:05:28 +0200
committerNoémi Ványi <sitbackandwait@gmail.com>2017-11-01 11:54:55 +0100
commite391b2d970a19cdc39dd550929e91ace4aee8832 (patch)
tree72fd3080d7127e199aa90b1d337f958aefbaa2d4 /searx/engines/arxiv.py
parent5278fa666c193e5ccb30e7b5f8dddf1b053f97ca (diff)
downloadsearxng-e391b2d970a19cdc39dd550929e91ace4aee8832.tar.gz
searxng-e391b2d970a19cdc39dd550929e91ace4aee8832.zip
[fix] remove .encode for python3 compatibility
Diffstat (limited to 'searx/engines/arxiv.py')
-rw-r--r--searx/engines/arxiv.py2
1 files changed, 1 insertions, 1 deletions
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