LCL,BNPorc: fix str to unicode conversion warnings
Signed-off-by: Pierre Mazière <pierre.maziere@gmail.com>
This commit is contained in:
parent
bb6c65bb69
commit
b440918eca
2 changed files with 2 additions and 2 deletions
|
|
@ -145,7 +145,7 @@ class AccountsPage(BasePage):
|
|||
# TODO parse this string to get the right Account.TYPE_* to
|
||||
# store in account.type.
|
||||
account._type=value
|
||||
account.label=a.getparent().getprevious().text.strip()
|
||||
account.label=u''+a.getparent().getprevious().text.strip()
|
||||
balance=a.text.replace(u"\u00A0",'').replace(' ','').replace('.','').replace('+','').replace(',','.')
|
||||
if '-' in balance:
|
||||
balance='-'+balance.strip().replace('-', '')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue