Browse Source

[fix] use py2/3 compatibility layer

Adam Tauber 7 years ago
parent
commit
36af8f9d67
1 changed files with 1 additions and 5 deletions
  1. 1
    5
      searx/autocomplete.py

+ 1
- 5
searx/autocomplete.py View File

24
     categories, engines, engine_shortcuts
24
     categories, engines, engine_shortcuts
25
 )
25
 )
26
 from searx.poolrequests import get as http_get
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
 def get(*args, **kwargs):
30
 def get(*args, **kwargs):