summary refs log tree commit diff
path: root/synapse/rest/client/v1
diff options
context:
space:
mode:
authorSteven Hammerton <steven.hammerton@openmarket.com>2015-10-09 11:04:30 +0100
committerSteven Hammerton <steven.hammerton@openmarket.com>2015-10-10 10:54:19 +0100
commita9c299c0befc5cfc10ed1a5282b6002a43b9b462 (patch)
tree009193167bf4c71cdcd34cbcfbe682de8b3ceb2d /synapse/rest/client/v1
parentUse UserId to create FQ user id (diff)
downloadsynapse-a9c299c0befc5cfc10ed1a5282b6002a43b9b462.tar.xz
Fix my broken line splitting
Diffstat (limited to 'synapse/rest/client/v1')
-rw-r--r--synapse/rest/client/v1/login.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/synapse/rest/client/v1/login.py b/synapse/rest/client/v1/login.py
index 05095e7d6e..1bd93526ad 100644
--- a/synapse/rest/client/v1/login.py
+++ b/synapse/rest/client/v1/login.py
@@ -137,8 +137,9 @@ class LoginRestServlet(ClientV1RestServlet):
                 auth_handler = self.handlers.auth_handler
                 user_exists = yield auth_handler.does_user_exist(user_id)
                 if user_exists:
-                    user_id, access_token, refresh_token = yield
-                    auth_handler.login_with_cas_user_id(user_id)
+                    user_id, access_token, refresh_token = (
+                        yield auth_handler.login_with_cas_user_id(user_id)
+                    )
                     result = {
                         "user_id": user_id,  # may have changed
                         "access_token": access_token,
@@ -147,8 +148,9 @@ class LoginRestServlet(ClientV1RestServlet):
                     }
 
                 else:
-                    user_id, access_token = yield
-                    self.handlers.registration_handler.register(localpart=user)
+                    user_id, access_token = (
+                        yield self.handlers.registration_handler.register(localpart=user)
+                    )
                     result = {
                         "user_id": user_id,  # may have changed
                         "access_token": access_token,