diff options
author | mathieui <mathieui@mathieui.net> | 2013-07-01 22:10:30 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2013-07-01 22:10:30 +0200 |
commit | 697e311ce79f60b84c13a4a66b288dda0ab06fe8 (patch) | |
tree | a70bdfecbcbf894c6fc8aa55e66d087d7dc1d83b /src | |
parent | 8fe39540a4793e854a70ba5865d82f686c0b9258 (diff) | |
download | poezio-697e311ce79f60b84c13a4a66b288dda0ab06fe8.tar.gz poezio-697e311ce79f60b84c13a4a66b288dda0ab06fe8.tar.bz2 poezio-697e311ce79f60b84c13a4a66b288dda0ab06fe8.tar.xz poezio-697e311ce79f60b84c13a4a66b288dda0ab06fe8.zip |
Fix the repr() of messages for logging
Diffstat (limited to 'src')
-rw-r--r-- | src/text_buffer.py | 2 |
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): |