瀏覽代碼

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)



Loading…
取消
儲存