readabilite: fix re.match

master
pictuga 2017-03-19 01:55:40 -10:00
parent 9c331300eb
commit e65c88abf8
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ def clean_html(root):
item.getparent().remove(item) item.getparent().remove(item)
class_id = item.get('class', '') + item.get('id', '') class_id = item.get('class', '') + item.get('id', '')
if regex_bad.match(class_id): if regex_bad.match(class_id) is not None:
item.getparent().remove(item) item.getparent().remove(item)
if isinstance(item, lxml.html.HtmlComment): if isinstance(item, lxml.html.HtmlComment):