readabilite: remove unneeded reference to `features` (overriden by `builder`)
continuous-integration/drone/push Build is passing Details

master
pictuga 2022-01-03 18:01:12 +00:00
parent dbdca910d8
commit fb643f5ef1
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class CustomTreeBuilder(bs4.builder._lxml.LXMLTreeBuilder):
def parse(data, encoding=None): def parse(data, encoding=None):
kwargs = {'from_encoding': encoding} if encoding else {} 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): def count_words(string):