summaryrefslogtreecommitdiff
path: root/searx/engines/base.py
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2018-06-14 11:50:03 +0200
committerAdam Tauber <asciimoo@gmail.com>2018-06-14 11:50:03 +0200
commitf82ead3e303d75ba63a370dc038311e172e1330d (patch)
tree6f19f0feabc66cb1171c1063bdead3bf148476a8 /searx/engines/base.py
parentaef2b07969bddb1697c340604d1e22cea8a696cc (diff)
downloadsearxng-f82ead3e303d75ba63a370dc038311e172e1330d.tar.gz
searxng-f82ead3e303d75ba63a370dc038311e172e1330d.zip
[fix] add py3 compatibility to base engine - closes #1319
Diffstat (limited to 'searx/engines/base.py')
-rwxr-xr-xsearx/engines/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/base.py b/searx/engines/base.py
index be0b7d247..f1b1cf671 100755
--- a/searx/engines/base.py
+++ b/searx/engines/base.py
@@ -55,7 +55,7 @@ shorcut_dict = {
def request(query, params):
# replace shortcuts with API advanced search keywords
for key in shorcut_dict.keys():
- query = re.sub(str(key), str(shorcut_dict[key]), query)
+ query = re.sub(key, shorcut_dict[key], str(query))
# basic search
offset = (params['pageno'] - 1) * number_of_results