浏览代码

[fix] add py3 compatibility to base engine - closes #1319

Adam Tauber 6 年前
父节点
当前提交
f82ead3e30
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      searx/engines/base.py

+ 1
- 1
searx/engines/base.py 查看文件

@@ -55,7 +55,7 @@ shorcut_dict = {
55 55
 def request(query, params):
56 56
     # replace shortcuts with API advanced search keywords
57 57
     for key in shorcut_dict.keys():
58
-        query = re.sub(str(key), str(shorcut_dict[key]), query)
58
+        query = re.sub(key, shorcut_dict[key], str(query))
59 59
 
60 60
     # basic search
61 61
     offset = (params['pageno'] - 1) * number_of_results