Browse Source

[fix] remove .encode for python3 compatibility

jibe-b 7 years ago
parent
commit
e391b2d970
1 changed files with 1 additions and 1 deletions
  1. 1 1
      searx/engines/arxiv.py

+ 1 - 1
searx/engines/arxiv.py

@@ -41,7 +41,7 @@ def request(query, params):
 def response(resp):
 def response(resp):
     results = []
     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:
     for entry in search_results:
         title = entry.xpath('.//title')[0].text
         title = entry.xpath('.//title')[0].text