diff options
author | jibe-b <user701@orange.fr> | 2017-09-27 16:05:28 +0200 |
---|---|---|
committer | Noémi Ványi <sitbackandwait@gmail.com> | 2017-11-01 11:54:55 +0100 |
commit | e391b2d970a19cdc39dd550929e91ace4aee8832 (patch) | |
tree | 72fd3080d7127e199aa90b1d337f958aefbaa2d4 /searx/engines/arxiv.py | |
parent | 5278fa666c193e5ccb30e7b5f8dddf1b053f97ca (diff) | |
download | searxng-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.py | 2 |
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 |