readabilite: remove unneeded reference to `features` (overriden by `builder`)
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
dbdca910d8
commit
fb643f5ef1
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue