summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2017-03-08 11:58:20 +0000
committerDavid Baker <dave@matrix.org>2017-03-08 11:58:20 +0000
commit1c99934b280485f564b357de204785d55cf2ca62 (patch)
treeda5ec2acb84b909b27c4fb27e43566ec469820fe /synapse
parentAdd msisdn util file (diff)
downloadsynapse-1c99934b280485f564b357de204785d55cf2ca62.tar.xz
pep8
Diffstat (limited to 'synapse')
-rw-r--r--synapse/rest/client/v2_alpha/account.py2
-rw-r--r--synapse/util/msisdn.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/synapse/rest/client/v2_alpha/account.py b/synapse/rest/client/v2_alpha/account.py
index 71723ef3d6..aac76edf1c 100644
--- a/synapse/rest/client/v2_alpha/account.py
+++ b/synapse/rest/client/v2_alpha/account.py
@@ -72,7 +72,7 @@ class MsisdnPasswordRequestTokenRestServlet(RestServlet):
     def on_POST(self, request):
         body = parse_json_object_from_request(request)
 
-        assert_params_in_request(body,[
+        assert_params_in_request(body, [
             'id_server', 'client_secret',
             'country', 'phone_number', 'send_attempt',
         ])
diff --git a/synapse/util/msisdn.py b/synapse/util/msisdn.py
index 77ef0aa194..6905c5ce75 100644
--- a/synapse/util/msisdn.py
+++ b/synapse/util/msisdn.py
@@ -17,6 +17,7 @@
 import phonenumbers
 from synapse.api.errors import SynapseError
 
+
 def phone_number_to_msisdn(country, number):
     try:
         phoneNumber = phonenumbers.parse(number, country)