summary refs log tree commit diff
path: root/synapse/notifier.py
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/notifier.py')
-rw-r--r--synapse/notifier.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/notifier.py b/synapse/notifier.py
index 922bf064d0..e3b6ead620 100644
--- a/synapse/notifier.py
+++ b/synapse/notifier.py
@@ -214,7 +214,7 @@ class Notifier(object):
 
         deferred = defer.Deferred()
 
-        from_token=StreamToken("s0","0","0")
+        from_token = StreamToken("s0", "0", "0")
 
         listener = [_NotificationListener(
             user=user,
@@ -231,6 +231,7 @@ class Notifier(object):
         result = yield callback()
         if timeout:
             timed_out = [False]
+
             def _timeout_listener():
                 timed_out[0] = True
                 listener[0].notify(self, [], from_token, from_token)
@@ -252,7 +253,6 @@ class Notifier(object):
 
         defer.returnValue(result)
 
-
     def get_events_for(self, user, rooms, pagination_config, timeout):
         """ For the given user and rooms, return any new events for them. If
         there are no new events wait for up to `timeout` milliseconds for any