Fix Formatting

This commit is contained in:
Mark Haines 2015-01-27 20:19:36 +00:00
parent b19cf6a105
commit e020574d65
4 changed files with 9 additions and 14 deletions

View file

@ -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