8000 minor · escape-char/python-readability@a224c5b · GitHub
[go: up one dir, main page]

Skip to content

Commit a224c5b

Browse files
author
gfxmonk
committed
minor
1 parent e42a39e commit a224c5b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

readability/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
from readability import Document, main
2+
from page_parser import ascii, Unparseable

readability/readability.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ def __init__(self, input, **options):
3737

3838
def _html(self, force=False):
3939
if force or self.html is None:
40-
self.html = parse(self.input, self.options['url'])
40+
notify = self.options['notify'] or (lambda x: None)
41+
self.html = parse(self.input, self.options['url'], notify=notify)
4142
return self.html
4243

4344
def content(self):

0 commit comments

Comments
 (0)
0