mirror of
https://github.com/element-hq/synapse
synced 2024-09-11 19:25:11 +00:00
Add __str__ to FrozenEvent
This commit is contained in:
parent
95aa903ffa
commit
102d2373b4
1 changed files with 5 additions and 0 deletions
|
@ -160,3 +160,8 @@ class FrozenEvent(EventBase):
|
||||||
def get_dict(self):
|
def get_dict(self):
|
||||||
# We need to unfreeze what we return
|
# We need to unfreeze what we return
|
||||||
return _unfreeze(super(FrozenEvent, self).get_dict())
|
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,
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in a new issue