Fix doctest
This commit is contained in:
parent
59095aa85e
commit
f7136045d1
1 changed files with 1 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ class Filter(_Filter):
|
||||||
either a xpath selector string, or an other filter called before.
|
either a xpath selector string, or an other filter called before.
|
||||||
|
|
||||||
>>> from lxml.html import etree
|
>>> from lxml.html import etree
|
||||||
>>> f = CleanDecimal(CleanText('//p'))
|
>>> f = CleanDecimal(CleanText('//p'), replace_dots=True)
|
||||||
>>> f(etree.fromstring('<html><body><p>blah: <span>229,90</span></p></body></html>'))
|
>>> f(etree.fromstring('<html><body><p>blah: <span>229,90</span></p></body></html>'))
|
||||||
Decimal('229.90')
|
Decimal('229.90')
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue