From f6b35956e70a13c23c316b2306fb6f6af31363e1 Mon Sep 17 00:00:00 2001 From: Christophe Lampin Date: Mon, 22 Jul 2013 16:11:24 +0200 Subject: [PATCH] fix conversion warning Signed-off-by: Christophe Lampin --- modules/cragr/web/pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cragr/web/pages.py b/modules/cragr/web/pages.py index 2390625c..5ae3c210 100644 --- a/modules/cragr/web/pages.py +++ b/modules/cragr/web/pages.py @@ -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()