summary refs log tree commit diff
path: root/synapse/rest/client
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/rest/client')
-rw-r--r--synapse/rest/client/v2_alpha/register.py3
-rw-r--r--synapse/rest/client/v2_alpha/user_directory.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/synapse/rest/client/v2_alpha/register.py b/synapse/rest/client/v2_alpha/register.py
index 7aaa98fc8f..8b21345316 100644
--- a/synapse/rest/client/v2_alpha/register.py
+++ b/synapse/rest/client/v2_alpha/register.py
@@ -15,9 +15,10 @@
 # limitations under the License.
 
 import hmac
-import re
 import logging
+import re
 from hashlib import sha1
+from string import capwords
 
 from six import string_types
 
diff --git a/synapse/rest/client/v2_alpha/user_directory.py b/synapse/rest/client/v2_alpha/user_directory.py
index 7d895cee1e..5db8b5efb3 100644
--- a/synapse/rest/client/v2_alpha/user_directory.py
+++ b/synapse/rest/client/v2_alpha/user_directory.py
@@ -15,9 +15,10 @@
 
 import logging
 
-from twisted.internet import defer
 from signedjson.sign import sign_json
 
+from twisted.internet import defer
+
 from synapse.api.errors import SynapseError
 from synapse.http.servlet import RestServlet, parse_json_object_from_request