summary refs log tree commit diff
path: root/synapse/rest/client/v2_alpha/account.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-05-14 11:51:16 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2020-05-14 11:51:16 +0100
commit3fb2ea99329ad2c4f054deff83ad19af571241f8 (patch)
tree28b881fcb9973f47da50bf0733d17b2262bca76a /synapse/rest/client/v2_alpha/account.py
parentTemporarily add m.lazy_load_members to unstable_features (diff)
downloadsynapse-3fb2ea99329ad2c4f054deff83ad19af571241f8.tar.xz
apply linting
Diffstat (limited to 'synapse/rest/client/v2_alpha/account.py')
-rw-r--r--synapse/rest/client/v2_alpha/account.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/synapse/rest/client/v2_alpha/account.py b/synapse/rest/client/v2_alpha/account.py
index fbc5aa13f3..7d2cd29a60 100644
--- a/synapse/rest/client/v2_alpha/account.py
+++ b/synapse/rest/client/v2_alpha/account.py
@@ -31,10 +31,10 @@ from synapse.http.servlet import (
     parse_json_object_from_request,
     parse_string,
 )
-from synapse.types import UserID
 from synapse.push.mailer import Mailer, load_jinja2_templates
+from synapse.types import UserID
 from synapse.util.msisdn import phone_number_to_msisdn
-from synapse.util.stringutils import assert_valid_client_secret, random_string
+from synapse.util.stringutils import assert_valid_client_secret
 from synapse.util.threepids import check_3pid_allowed
 
 from ._base import client_patterns, interactive_auth_handler
@@ -650,7 +650,10 @@ class ThreepidRestServlet(RestServlet):
             threepid = body.get("threepid")
 
             await self.auth_handler.add_threepid(
-                user_id, threepid["medium"], threepid["address"], threepid["validated_at"]
+                user_id,
+                threepid["medium"],
+                threepid["address"],
+                threepid["validated_at"],
             )
 
             if self.hs.config.shadow_server:
@@ -710,7 +713,7 @@ class ThreepidRestServlet(RestServlet):
             "%s/_matrix/client/r0/account/3pid?access_token=%s&user_id=%s"
             % (shadow_hs_url, as_token, user_id),
             body,
-            )
+        )
 
 
 class ThreepidAddRestServlet(RestServlet):