summary refs log tree commit diff
path: root/synapse/push
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2015-01-28 14:01:24 +0000
committerDavid Baker <dave@matrix.org>2015-01-28 14:01:24 +0000
commit03149ad23ace1f200993a74b998a6986d70c9420 (patch)
treee66879ce41df5ba95ad84af1369f53b07bec48eb /synapse/push
parentBrackets rather than slashes at end (diff)
downloadsynapse-03149ad23ace1f200993a74b998a6986d70c9420.tar.xz
More code style things
Diffstat (limited to 'synapse/push')
-rw-r--r--synapse/push/__init__.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/synapse/push/__init__.py b/synapse/push/__init__.py
index 8a3e8fd2a3..b79f2d4b27 100644
--- a/synapse/push/__init__.py
+++ b/synapse/push/__init__.py
@@ -187,7 +187,7 @@ class Pusher(object):
                             # for sanity, we only remove the pushkey if it
                             # was the one we actually sent...
                             logger.warn(
-                                ("Ignoring rejected pushkey %s because we " +
+                                ("Ignoring rejected pushkey %s because we "
                                 "didn't send it"), pk
                             )
                         else:
@@ -234,7 +234,8 @@ class Pusher(object):
                     # of old notifications.
                     logger.warn("Giving up on a notification to user %s, "
                                 "pushkey %s",
-                                self.user_name, self.pushkey)
+                                self.user_name, self.pushkey
+                    )
                     self.backoff_delay = Pusher.INITIAL_BACKOFF
                     self.last_token = chunk['end']
                     self.store.update_pusher_last_token(
@@ -256,7 +257,7 @@ class Pusher(object):
                                 self.user_name,
                                 self.clock.time_msec() - self.failing_since,
                                 self.backoff_delay
-                                )
+                    )
                     yield synapse.util.async.sleep(self.backoff_delay / 1000.0)
                     self.backoff_delay *= 2
                     if self.backoff_delay > Pusher.MAX_BACKOFF: