From 9df4fd37be6040dad9fd6f4b5b92bf6c6f5e1acc Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Sat, 3 Aug 2013 13:06:12 +0200 Subject: [PATCH] use repr() to prevent encoding issues --- weboob/capabilities/bank.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/weboob/capabilities/bank.py b/weboob/capabilities/bank.py index 03e756f016..ac1f837d3f 100644 --- a/weboob/capabilities/bank.py +++ b/weboob/capabilities/bank.py @@ -107,9 +107,7 @@ class Transaction(CapBaseObject): amount = DecimalField('Amount of the transaction') def __repr__(self): - label = self.label.encode('utf-8') if self.label else self.label - return "" % (self.date, - label, self.amount) + return "" % (self.date, self.label, self.amount) def unique_id(self, seen=None, account_id=None): crc = crc32(str(self.date)) -- GitLab