delete 'remove_html_tags' global function, and create IParser.tocleanstring and IParser.strip abstract methods.
This commit is contained in:
parent
5a96b425da
commit
59dfe3083a
4 changed files with 31 additions and 7 deletions
|
|
@ -22,7 +22,6 @@ import re
|
|||
|
||||
from weboob.capabilities.bank import Operation
|
||||
from weboob.tools.browser import BasePage
|
||||
from weboob.tools.misc import remove_html_tags
|
||||
|
||||
|
||||
__all__ = ['AccountHistory']
|
||||
|
|
@ -40,7 +39,7 @@ class AccountHistory(BasePage):
|
|||
operation = Operation(len(operations))
|
||||
operation.date = mvt.xpath("./td/span")[0].text
|
||||
tmp = mvt.xpath("./td/span")[1]
|
||||
operation.label = remove_html_tags(self.parser.tostring(tmp)).strip()
|
||||
operation.label = self.parser.tocleanstring(tmp)
|
||||
|
||||
r = re.compile(r'\d+')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue