0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-14 11:33:53 +01:00

Add __str__ to FrozenEvent

This commit is contained in:
Erik Johnston 2014-12-10 11:38:08 +00:00
parent 95aa903ffa
commit 102d2373b4

View file

@ -160,3 +160,8 @@ class FrozenEvent(EventBase):
def get_dict(self):
# We need to unfreeze what we return
return _unfreeze(super(FrozenEvent, self).get_dict())
def __str__(self):
return "<FrozenEvent event_id='%s', type='%s', state_key='%s'>" % (
self.event_id, self.type, self.state_key,
)