summaryrefslogtreecommitdiff
path: root/searx/autocomplete.py
diff options
context:
space:
mode:
authorMarc Abonce Seguin <marc-abonce@mailbox.org>2018-01-18 20:51:27 -0600
committerMarc Abonce Seguin <marc-abonce@mailbox.org>2019-07-01 17:16:02 -0500
commit40272b0044a2ef520ff9c3fb3513c5a340663f22 (patch)
tree1c5c2fbc4537b7dfdaf50ab98605ba4371eeda76 /searx/autocomplete.py
parent69c8ad86f3505051c029146382cbaf9531a35a8a (diff)
downloadsearxng-40272b0044a2ef520ff9c3fb3513c5a340663f22.tar.gz
searxng-40272b0044a2ef520ff9c3fb3513c5a340663f22.zip
[fix] never pass bangs to autocomplete suggestions
Diffstat (limited to 'searx/autocomplete.py')
-rw-r--r--searx/autocomplete.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/searx/autocomplete.py b/searx/autocomplete.py
index f8a45b3ec..ff8958500 100644
--- a/searx/autocomplete.py
+++ b/searx/autocomplete.py
@@ -16,6 +16,7 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >.
'''
+import sys
from lxml import etree
from json import loads
from searx import settings
@@ -26,6 +27,9 @@ from searx.engines import (
from searx.poolrequests import get as http_get
from searx.url_utils import urlencode
+if sys.version_info[0] == 3:
+ unicode = str
+
def get(*args, **kwargs):
if 'timeout' not in kwargs: