update with newer coding style
This commit is contained in:
parent
5914fd09c7
commit
c8dc740a94
|
@ -851,7 +851,7 @@ class E2eKeysHandler(object):
|
||||||
user_id, signed_users
|
user_id, signed_users
|
||||||
)
|
)
|
||||||
|
|
||||||
defer.returnValue({"failures": failures})
|
return {"failures": failures}
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def _get_e2e_cross_signing_verify_key(self, user_id, key_type, from_user_id=None):
|
def _get_e2e_cross_signing_verify_key(self, user_id, key_type, from_user_id=None):
|
||||||
|
|
|
@ -274,7 +274,7 @@ class SigningKeyUploadServlet(RestServlet):
|
||||||
)
|
)
|
||||||
|
|
||||||
result = yield self.e2e_keys_handler.upload_signing_keys_for_user(user_id, body)
|
result = yield self.e2e_keys_handler.upload_signing_keys_for_user(user_id, body)
|
||||||
return (200, result)
|
return 200, result
|
||||||
|
|
||||||
|
|
||||||
class SignaturesUploadServlet(RestServlet):
|
class SignaturesUploadServlet(RestServlet):
|
||||||
|
@ -324,7 +324,7 @@ class SignaturesUploadServlet(RestServlet):
|
||||||
result = yield self.e2e_keys_handler.upload_signatures_for_device_keys(
|
result = yield self.e2e_keys_handler.upload_signatures_for_device_keys(
|
||||||
user_id, body
|
user_id, body
|
||||||
)
|
)
|
||||||
defer.returnValue((200, result))
|
return 200, result
|
||||||
|
|
||||||
|
|
||||||
def register_servlets(hs, http_server):
|
def register_servlets(hs, http_server):
|
||||||
|
|
Loading…
Reference in New Issue