From 697e311ce79f60b84c13a4a66b288dda0ab06fe8 Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 1 Jul 2013 22:10:30 +0200 Subject: Fix the repr() of messages for logging --- src/text_buffer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/text_buffer.py b/src/text_buffer.py index 91b0b57f..40b275b1 100644 --- a/src/text_buffer.py +++ b/src/text_buffer.py @@ -28,7 +28,7 @@ def other_elems(self): fields = message_fields.split() fields.remove('old_message') for field in fields: - acc.append('%s=%s' % (field, getattr(self, field))) + acc.append('%s=%s' % (field, repr(getattr(self, field)))) return (', '.join(acc) + ', old_message=') def repr_message(self): -- cgit v1.2.3