diff options
author | Erik Johnston <erik@matrix.org> | 2014-12-10 11:38:08 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-12-10 11:38:08 +0000 |
commit | 102d2373b4c5e46252ca9e2845a2415c5d00d193 (patch) | |
tree | 70f79337d6252011ff932a79c450d1c2c897951f /synapse | |
parent | Try and figure out how and why signatures are being changed. (diff) | |
download | synapse-102d2373b4c5e46252ca9e2845a2415c5d00d193.tar.xz |
Add __str__ to FrozenEvent
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/events/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/events/__init__.py b/synapse/events/__init__.py index ed02138706..c43367fa20 100644 --- a/synapse/events/__init__.py +++ b/synapse/events/__init__.py @@ -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, + ) |