summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--poezio/text_buffer.py4
1 files 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):
"""