diff --git a/synapse/events/snapshot.py b/synapse/events/snapshot.py
index fbbe8dd4906244c9d646078cc1df3191088ce43b..5e02ef1a5c18e6bc3bfd79060b9c8f2c9f26d6b5 100644
--- a/synapse/events/snapshot.py
+++ b/synapse/events/snapshot.py
@@ -145,7 +145,7 @@ class EventContext(object):
             current_state_ids=current_state_ids,
             prev_state_ids=prev_state_ids,
             prev_group=input["prev_group"],
-            delta_ids = _decode_state_dict(input["delta_ids"]),
+            delta_ids=_decode_state_dict(input["delta_ids"]),
         )
 
         context.rejected = input["rejected"]