commit: 36af8f9d676ed28a619c18746e638dc5e2159585
parent: 80460be8f69cea5f15c9d5ddbb63e4e48fde2dd0
Author: Adam Tauber <asciimoo@gmail.com>
Date: Mon, 10 Jul 2017 11:42:44 +0200
[fix] use py2/3 compatibility layer
Diffstat:
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/searx/autocomplete.py b/searx/autocomplete.py
@@ -24,11 +24,7 @@ from searx.engines import (
categories, engines, engine_shortcuts
)
from searx.poolrequests import get as http_get
-
-try:
- from urllib import urlencode
-except:
- from urllib.parse import urlencode
+from searx.url_utils import urlencode
def get(*args, **kwargs):