Skip to content

Commit f9b604c

Browse files
committed
Merge pull request buriy#10 from facundo/master
Fix: Document.score_paragraphs should use ._html() not .html in case it's used not from .summary() method. Thanks to facundo.
2 parents fc6a500 + bb93ae1 commit f9b604c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readability/readability.py

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def score_paragraphs(self, ):
196196
#self.debug(str([describe(node) for node in self.tags(self.html, "div")]))
197197

198198
ordered = []
199-
for elem in self.tags(self.html, "p", "pre", "td"):
199+
for elem in self.tags(self._html(), "p", "pre", "td"):
200200
parent_node = elem.getparent()
201201
if parent_node is None:
202202
continue

0 commit comments

Comments
 (0)