From 3fb2ea99329ad2c4f054deff83ad19af571241f8 Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Thu, 14 May 2020 11:51:16 +0100 Subject: apply linting --- synapse/rest/client/v2_alpha/account.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'synapse/rest/client/v2_alpha/account.py') 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): -- cgit 1.5.1