summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-07-01 22:10:30 +0200
committermathieui <mathieui@mathieui.net>2013-07-01 22:10:30 +0200
commit697e311ce79f60b84c13a4a66b288dda0ab06fe8 (patch)
treea70bdfecbcbf894c6fc8aa55e66d087d7dc1d83b
parent8fe39540a4793e854a70ba5865d82f686c0b9258 (diff)
downloadpoezio-697e311ce79f60b84c13a4a66b288dda0ab06fe8.tar.gz
poezio-697e311ce79f60b84c13a4a66b288dda0ab06fe8.tar.bz2
poezio-697e311ce79f60b84c13a4a66b288dda0ab06fe8.tar.xz
poezio-697e311ce79f60b84c13a4a66b288dda0ab06fe8.zip
Fix the repr() of messages for logging
-rw-r--r--src/text_buffer.py2
1 files changed, 1 insertions, 1 deletions
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):