fix conversion warning

Signed-off-by: Christophe Lampin <weboob@lampin.net>
This commit is contained in:
Christophe Lampin 2013-07-22 16:11:24 +02:00 committed by Florent
commit f6b35956e7

View file

@ -186,7 +186,7 @@ class TransactionsPage(BasePage):
sub_label = col_text.find('br').tail
if sub_label is not None and (len(t.label) < 3 or t.label == t.category or len(re.findall('[^\w\s]', sub_label))/float(len(sub_label)) < len(re.findall('\d', t.label))/float(len(t.label))):
t.label = sub_label.strip()
t.label = unicode(sub_label.strip())
# Sometimes, the category contains the label, even if there is another line with it again.
t.category = re.sub('(.*) .*', r'\1', t.category).strip()