From 13b90fb10b20f7c1e34b50c209e9364e78786c9f Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 14 Jul 2018 17:14:02 +0200 Subject: Remove extraneous ", " in Message.__repr__. --- poezio/text_buffer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/poezio/text_buffer.py b/poezio/text_buffer.py index 1a3ac302..8043c834 100644 --- a/poezio/text_buffer.py +++ b/poezio/text_buffer.py @@ -73,12 +73,12 @@ class Message: def _other_elems(self): "Helper for the repr_message function" - acc = ['Message('] + acc = [] fields = list(self.__slots__) fields.remove('old_message') for field in fields: acc.append('%s=%s' % (field, repr(getattr(self, field)))) - return ', '.join(acc) + ', old_message=' + return 'Message(%s, %s' % (', '.join(acc), 'old_message=') def __repr__(self): """ -- cgit v1.2.3