Browse Source

readabilite: remove unneeded reference to `features` (overriden by `builder`)

master
pictuga 3 weeks ago
parent
commit
fb643f5ef1
  1. 2
      morss/readabilite.py

2
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):

Loading…
Cancel
Save