Explorar el Código

[fix] remove .encode for python3 compatibility

jibe-b hace 7 años
padre
commit
e391b2d970
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      searx/engines/arxiv.py

+ 1
- 1
searx/engines/arxiv.py Ver fichero

41
 def response(resp):
41
 def response(resp):
42
     results = []
42
     results = []
43
 
43
 
44
-    search_results = html.fromstring(resp.text.encode('utf-8')).xpath('//entry')
44
+    search_results = html.fromstring(resp.text).xpath('//entry')
45
 
45
 
46
     for entry in search_results:
46
     for entry in search_results:
47
         title = entry.xpath('.//title')[0].text
47
         title = entry.xpath('.//title')[0].text