summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
Diffstat (limited to 'synapse')
-rw-r--r--synapse/handlers/auth.py4
-rw-r--r--synapse/storage/registration.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/synapse/handlers/auth.py b/synapse/handlers/auth.py
index a740cc3da3..0f02493fa2 100644
--- a/synapse/handlers/auth.py
+++ b/synapse/handlers/auth.py
@@ -439,10 +439,10 @@ class AuthHandler(BaseHandler):
 
         yield self.store.user_set_password_hash(user_id, password_hash)
         yield self.store.user_delete_access_tokens_except(
-                user_id, except_access_token_ids
+            user_id, except_access_token_ids
         )
         yield self.hs.get_pusherpool().remove_pushers_by_user_except_access_tokens(
-                user_id, except_access_token_ids
+            user_id, except_access_token_ids
         )
 
     @defer.inlineCallbacks
diff --git a/synapse/storage/registration.py b/synapse/storage/registration.py
index 5eef7ebcc7..d3d84c9b94 100644
--- a/synapse/storage/registration.py
+++ b/synapse/storage/registration.py
@@ -212,7 +212,7 @@ class RegistrationStore(SQLBaseStore):
         def f(txn):
             txn.execute(
                 "SELECT id, token FROM access_tokens WHERE user_id = ? LIMIT 50",
-                    (user_id,)
+                (user_id,)
             )
             rows = txn.fetchall()
             for r in rows: