浏览代码

Apparently oauth2 converts the query to unicode.

tags/v0.2
Ben Kurtovic 10 年前
父节点
当前提交
4f5a22a2e5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      earwigbot/wiki/copyvios/search.py

+ 1
- 1
earwigbot/wiki/copyvios/search.py 查看文件

@@ -64,7 +64,7 @@ class YahooBOSSSearchEngine(BaseSearchEngine):
@staticmethod
def _build_url(base, params):
"""Works like urllib.urlencode(), but uses %20 for spaces over +."""
enc = lambda s: quote(s, safe="")
enc = lambda s: quote(s.encode("utf8"), safe="")
args = ["=".join((enc(k), enc(v))) for k, v in params.iteritems()]
return base + "?" + "&".join(args)



正在加载...
取消
保存