summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2015-04-24 18:15:07 +0100
committerDavid Baker <dave@matrix.org>2015-04-24 18:15:07 +0100
commit2f475bd5d5cd9426a38d748238a214aaf77be4a2 (patch)
tree7b9f5360d379616698bd3161cb102f5e328f1d8e /synapse
parentCheck users in our table aren't on a different domain to the one we're config... (diff)
downloadsynapse-2f475bd5d5cd9426a38d748238a214aaf77be4a2.tar.xz
pep8
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/registration.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/registration.py b/synapse/storage/registration.py
index c2efc3fd32..697d487126 100644
--- a/synapse/storage/registration.py
+++ b/synapse/storage/registration.py
@@ -156,9 +156,9 @@ class RegistrationStore(SQLBaseStore):
 
     def _all_users_on_domain_txn(self, txn, domain):
         sql = "SELECT COUNT(*) FROM users WHERE name NOT LIKE ?"
-        pat = "%:"+domain
+        pat = "%:" + domain
         cursor = txn.execute(sql, (pat,))
         num_not_matching = cursor.fetchall()[0][0]
         if num_not_matching == 0:
             return True
-        return False
\ No newline at end of file
+        return False