diff options
author | Adam Tauber <asciimoo@gmail.com> | 2017-07-10 11:42:44 +0200 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2017-07-10 11:42:44 +0200 |
commit | 36af8f9d676ed28a619c18746e638dc5e2159585 (patch) | |
tree | 559aab217615507d2e583c146d097bd4b823970f /searx/autocomplete.py | |
parent | 80460be8f69cea5f15c9d5ddbb63e4e48fde2dd0 (diff) | |
download | searxng-36af8f9d676ed28a619c18746e638dc5e2159585.tar.gz searxng-36af8f9d676ed28a619c18746e638dc5e2159585.zip |
[fix] use py2/3 compatibility layer
Diffstat (limited to 'searx/autocomplete.py')
-rw-r--r-- | searx/autocomplete.py | 6 |
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): |