diff options
author | Erik Johnston <erik@matrix.org> | 2016-08-26 11:20:59 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-08-26 11:20:59 +0100 |
commit | 54cc69154e22086334e679f1784f0a46f25dea7d (patch) | |
tree | 8e65bb826e7f68ea554a200c14e57c4876db795d /synapse | |
parent | Measure _filter_events_for_server (diff) | |
download | synapse-54cc69154e22086334e679f1784f0a46f25dea7d.tar.xz |
Make None optional
Diffstat (limited to '')
-rw-r--r-- | synapse/events/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/events/__init__.py b/synapse/events/__init__.py index 13154b1723..bcb8f33a58 100644 --- a/synapse/events/__init__.py +++ b/synapse/events/__init__.py @@ -99,7 +99,7 @@ class EventBase(object): return d - def get(self, key, default): + def get(self, key, default=None): return self._event_dict.get(key, default) def get_internal_metadata_dict(self): |