From 36af8f9d676ed28a619c18746e638dc5e2159585 Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Mon, 10 Jul 2017 11:42:44 +0200 Subject: [PATCH] [fix] use py2/3 compatibility layer --- searx/autocomplete.py | 6 +----- 1 file changed, 1 insertion(+), 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):