summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-08-26 11:20:59 +0100
committerErik Johnston <erik@matrix.org>2016-08-26 11:20:59 +0100
commit54cc69154e22086334e679f1784f0a46f25dea7d (patch)
tree8e65bb826e7f68ea554a200c14e57c4876db795d /synapse
parentMeasure _filter_events_for_server (diff)
downloadsynapse-54cc69154e22086334e679f1784f0a46f25dea7d.tar.xz
Make None optional
Diffstat (limited to '')
-rw-r--r--synapse/events/__init__.py2
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):