summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-07-14 17:14:02 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-07-14 17:15:55 +0200
commit13b90fb10b20f7c1e34b50c209e9364e78786c9f (patch)
treeb7a5e81a3e830582242de624b26a00a4b27a91cc
parent20ebea1c89a00187db390443ed284e0974ff7222 (diff)
downloadpoezio-13b90fb10b20f7c1e34b50c209e9364e78786c9f.tar.gz
poezio-13b90fb10b20f7c1e34b50c209e9364e78786c9f.tar.bz2
poezio-13b90fb10b20f7c1e34b50c209e9364e78786c9f.tar.xz
poezio-13b90fb10b20f7c1e34b50c209e9364e78786c9f.zip
Remove extraneous ", " in Message.__repr__.
-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):
"""