summary refs log tree commit diff
path: root/synapse/rest/client/v2_alpha/keys.py
diff options
context:
space:
mode:
authorHubert Chathi <hubert@uhoreg.ca>2019-09-04 22:30:45 -0400
committerHubert Chathi <hubert@uhoreg.ca>2019-09-04 22:30:45 -0400
commitc8dc740a94f20c0bca9aaa30b9d0fd211361a21e (patch)
tree263748bca4a67b36fc3358562575985972385225 /synapse/rest/client/v2_alpha/keys.py
parentadd test (diff)
downloadsynapse-c8dc740a94f20c0bca9aaa30b9d0fd211361a21e.tar.xz
update with newer coding style
Diffstat (limited to 'synapse/rest/client/v2_alpha/keys.py')
-rw-r--r--synapse/rest/client/v2_alpha/keys.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/client/v2_alpha/keys.py b/synapse/rest/client/v2_alpha/keys.py
index a205281830..341567ae21 100644
--- a/synapse/rest/client/v2_alpha/keys.py
+++ b/synapse/rest/client/v2_alpha/keys.py
@@ -274,7 +274,7 @@ class SigningKeyUploadServlet(RestServlet):
         )
 
         result = yield self.e2e_keys_handler.upload_signing_keys_for_user(user_id, body)
-        return (200, result)
+        return 200, result
 
 
 class SignaturesUploadServlet(RestServlet):
@@ -324,7 +324,7 @@ class SignaturesUploadServlet(RestServlet):
         result = yield self.e2e_keys_handler.upload_signatures_for_device_keys(
             user_id, body
         )
-        defer.returnValue((200, result))
+        return 200, result
 
 
 def register_servlets(hs, http_server):