[fix] remove .encode for python3 compatibility
commite391b2d970a19cdc39dd550929e91ace4aee8832
authorjibe-b <user701@orange.fr>
dateWed 27 Sep 2017, 16:05 (9 years ago)
parent5278fa6
searx/engines/arxiv.py+1−1
@@ -41,7 +41,7 @@ def request(query, params):
4141def response(resp):
4242 results = []
4343
44− search_results = html.fromstring(resp.text.encode('utf-8')).xpath('//entry')
44+ search_results = html.fromstring(resp.text).xpath('//entry')
4545
4646 for entry in search_results:
4747 title = entry.xpath('.//title')[0].text