Procházet zdrojové kódy

[fix] remove .encode for python3 compatibility

jibe-b před 7 roky
rodič
revize
e391b2d970
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      searx/engines/arxiv.py

+ 1
- 1
searx/engines/arxiv.py Zobrazit soubor

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