瀏覽代碼

Return the correct empty chain.

tags/v0.2
Ben Kurtovic 10 年之前
父節點
當前提交
c3ddc3d35a
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      earwigbot/wiki/copyvios/__init__.py

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

@@ -110,7 +110,8 @@ class CopyvioMixIn(object):
"""
html = self._open_url_ignoring_errors(url)
if not html:
return 0, ()
empty = MarkovChain("")
return 0, (empty, MarkovChainIntersection(empty, empty))

source = MarkovChain(HTMLTextParser(html).strip())
delta = MarkovChainIntersection(article, source)


Loading…
取消
儲存