summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-04-06 16:50:47 +0100
committerDavid Baker <dave@matrix.org>2016-04-06 16:50:47 +0100
commit0fd1cd24003b54e475985cf90db4223c3098375d (patch)
tree149540afd88c81a9bcb5c24b311995f732c38f41 /synapse
parentMake pushers use the event_push_actions table instead of listening on an even... (diff)
downloadsynapse-0fd1cd24003b54e475985cf90db4223c3098375d.tar.xz
pep8
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/event_push_actions.py2
-rw-r--r--synapse/storage/events.py4
-rw-r--r--synapse/storage/registration.py2
-rw-r--r--synapse/storage/roommember.py4
4 files changed, 8 insertions, 4 deletions
diff --git a/synapse/storage/event_push_actions.py b/synapse/storage/event_push_actions.py
index 5f61743e34..4d72e4a85e 100644
--- a/synapse/storage/event_push_actions.py
+++ b/synapse/storage/event_push_actions.py
@@ -144,7 +144,7 @@ class EventPushActionsStore(SQLBaseStore):
             txn.execute("SELECT MAX(stream_ordering) FROM event_push_actions")
             return txn.fetchone()
         result = yield self.runInteraction(
-                "get_latest_push_action_stream_ordering", f
+            "get_latest_push_action_stream_ordering", f
         )
         defer.returnValue(result[0] or 0)
 
diff --git a/synapse/storage/events.py b/synapse/storage/events.py
index ceae8715ce..5be5bc01b1 100644
--- a/synapse/storage/events.py
+++ b/synapse/storage/events.py
@@ -202,7 +202,9 @@ class EventsStore(SQLBaseStore):
             txn.call_after(self._get_current_state_for_key.invalidate_all)
             txn.call_after(self.get_rooms_for_user.invalidate_all)
             txn.call_after(self.get_users_in_room.invalidate, (event.room_id,))
-            txn.call_after(self.get_users_with_pushers_in_room.invalidate, (event.room_id,))
+            txn.call_after(
+                self.get_users_with_pushers_in_room.invalidate, (event.room_id,)
+            )
             txn.call_after(self.get_joined_hosts_for_room.invalidate, (event.room_id,))
             txn.call_after(self.get_room_name_and_aliases.invalidate, (event.room_id,))
 
diff --git a/synapse/storage/registration.py b/synapse/storage/registration.py
index 701dd2f656..7af0cae6a5 100644
--- a/synapse/storage/registration.py
+++ b/synapse/storage/registration.py
@@ -20,7 +20,7 @@ from twisted.internet import defer
 from synapse.api.errors import StoreError, Codes
 
 from ._base import SQLBaseStore
-from synapse.util.caches.descriptors import cached, cachedInlineCallbacks, cachedList
+from synapse.util.caches.descriptors import cached, cachedInlineCallbacks
 
 
 class RegistrationStore(SQLBaseStore):
diff --git a/synapse/storage/roommember.py b/synapse/storage/roommember.py
index 22a690aa8d..088ad0f914 100644
--- a/synapse/storage/roommember.py
+++ b/synapse/storage/roommember.py
@@ -58,7 +58,9 @@ class RoomMemberStore(SQLBaseStore):
             txn.call_after(self.get_rooms_for_user.invalidate, (event.state_key,))
             txn.call_after(self.get_joined_hosts_for_room.invalidate, (event.room_id,))
             txn.call_after(self.get_users_in_room.invalidate, (event.room_id,))
-            txn.call_after(self.get_users_with_pushers_in_room.invalidate, (event.room_id,))
+            txn.call_after(
+                self.get_users_with_pushers_in_room.invalidate, (event.room_id,)
+            )
             txn.call_after(
                 self._membership_stream_cache.entity_has_changed,
                 event.state_key, event.internal_metadata.stream_ordering