Remove extraneous ", " in Message.__repr__.
This commit is contained in:
parent
20ebea1c89
commit
13b90fb10b
1 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue