From fb643f5ef1c30a11aceff20f8907a152d8a42c96 Mon Sep 17 00:00:00 2001 From: pictuga Date: Mon, 3 Jan 2022 18:01:12 +0000 Subject: [PATCH] readabilite: remove unneeded reference to `features` (overriden by `builder`) --- morss/readabilite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss/readabilite.py b/morss/readabilite.py index 716bdd1..7747dd7 100644 --- a/morss/readabilite.py +++ b/morss/readabilite.py @@ -30,7 +30,7 @@ class CustomTreeBuilder(bs4.builder._lxml.LXMLTreeBuilder): def parse(data, encoding=None): kwargs = {'from_encoding': encoding} if encoding else {} - return lxml.html.soupparser.fromstring(data, features='lxml', builder=CustomTreeBuilder, **kwargs) + return lxml.html.soupparser.fromstring(data, builder=CustomTreeBuilder, **kwargs) def count_words(string):