瀏覽代碼

[fix] use py2/3 compatibility layer

Adam Tauber 7 年之前
父節點
當前提交
36af8f9d67
共有 1 個檔案被更改,包括 1 行新增5 行删除
  1. 1
    5
      searx/autocomplete.py

+ 1
- 5
searx/autocomplete.py 查看文件

@@ -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):