summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2017-07-10 11:42:44 +0200
committerAdam Tauber <asciimoo@gmail.com>2017-07-10 11:42:44 +0200
commit36af8f9d676ed28a619c18746e638dc5e2159585 (patch)
tree559aab217615507d2e583c146d097bd4b823970f
parent80460be8f69cea5f15c9d5ddbb63e4e48fde2dd0 (diff)
downloadsearxng-36af8f9d676ed28a619c18746e638dc5e2159585.tar.gz
searxng-36af8f9d676ed28a619c18746e638dc5e2159585.zip
[fix] use py2/3 compatibility layer
-rw-r--r--searx/autocomplete.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/searx/autocomplete.py b/searx/autocomplete.py
index de0623a8a..f8a45b3ec 100644
--- 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):