0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-03 13:18:56 +01:00

more pep8 suggestions

This commit is contained in:
David Baker 2015-01-23 13:36:01 +00:00
parent b3f66ea6fb
commit fc7a05c443

View file

@ -74,7 +74,6 @@ class Pusher(object):
defer.returnValue(ctx) defer.returnValue(ctx)
@defer.inlineCallbacks @defer.inlineCallbacks
def start(self): def start(self):
if not self.last_token: if not self.last_token:
@ -116,7 +115,7 @@ class Pusher(object):
processed = False processed = False
if self._should_notify_for_event(single_event): if self._should_notify_for_event(single_event):
rejected = yield self.dispatch_push(single_event) rejected = yield self.dispatch_push(single_event)
if not rejected == False: if not rejected is False:
processed = True processed = True
for pk in rejected: for pk in rejected:
if pk != self.pushkey: if pk != self.pushkey: