summary refs log tree commit diff
path: root/synapse/rest/client/v2_alpha/register.py
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2017-03-14 10:49:55 +0000
committerDavid Baker <dave@matrix.org>2017-03-14 10:49:55 +0000
commit7b6ed9871e1f43a9fd809febfd191f3e03ef7212 (patch)
treedb9f860398cf35081d1ced1f66889d5103d8d171 /synapse/rest/client/v2_alpha/register.py
parentOops, remove print (diff)
downloadsynapse-7b6ed9871e1f43a9fd809febfd191f3e03ef7212.tar.xz
Use extend instead of +=
Diffstat (limited to 'synapse/rest/client/v2_alpha/register.py')
-rw-r--r--synapse/rest/client/v2_alpha/register.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/synapse/rest/client/v2_alpha/register.py b/synapse/rest/client/v2_alpha/register.py
index 526b29c24e..dcd13b876f 100644
--- a/synapse/rest/client/v2_alpha/register.py
+++ b/synapse/rest/client/v2_alpha/register.py
@@ -253,20 +253,20 @@ class RegisterRestServlet(RestServlet):
                 [LoginType.EMAIL_IDENTITY, LoginType.RECAPTCHA],
             ]
             if show_msisdn:
-                flows += [
+                flows.extend([
                     [LoginType.MSISDN, LoginType.RECAPTCHA],
                     [LoginType.MSISDN, LoginType.EMAIL_IDENTITY, LoginType.RECAPTCHA],
-                ]
+                ])
         else:
             flows = [
                 [LoginType.DUMMY],
                 [LoginType.EMAIL_IDENTITY],
             ]
             if show_msisdn:
-                flows += [
+                flows.extend([
                     [LoginType.MSISDN],
                     [LoginType.MSISDN, LoginType.EMAIL_IDENTITY],
-                ]
+                ])
 
         authed, auth_result, params, session_id = yield self.auth_handler.check_auth(
             flows, body, self.hs.get_ip_from_request(request)