Sfoglia il codice sorgente

[fix] use py2/3 compatibility layer

Adam Tauber 7 anni fa
parent
commit
36af8f9d67
1 ha cambiato i file con 1 aggiunte e 5 eliminazioni
  1. 1
    5
      searx/autocomplete.py

+ 1
- 5
searx/autocomplete.py Vedi File

@@ -24,11 +24,7 @@ from searx.engines import (
24 24
     categories, engines, engine_shortcuts
25 25
 )
26 26
 from searx.poolrequests import get as http_get
27
-
28
-try:
29
-    from urllib import urlencode
30
-except:
31
-    from urllib.parse import urlencode
27
+from searx.url_utils import urlencode
32 28
 
33 29
 
34 30
 def get(*args, **kwargs):