diff options
author | Andrew Morgan <andrew@amorgan.xyz> | 2020-04-20 16:07:00 +0100 |
---|---|---|
committer | Andrew Morgan <andrew@amorgan.xyz> | 2020-04-20 16:07:00 +0100 |
commit | 714e75dc1b90fa9d62630991f8605975ec92933e (patch) | |
tree | 582bc428955f50f43b06f0013c338aa4fe82843f /synapse/handlers/e2e_keys.py | |
parent | Resolve review comments (diff) | |
download | synapse-714e75dc1b90fa9d62630991f8605975ec92933e.tar.xz |
lint
Diffstat (limited to '')
-rw-r--r-- | synapse/handlers/e2e_keys.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/synapse/handlers/e2e_keys.py b/synapse/handlers/e2e_keys.py index 862933210b..6ea7a42c05 100644 --- a/synapse/handlers/e2e_keys.py +++ b/synapse/handlers/e2e_keys.py @@ -16,7 +16,6 @@ # limitations under the License. import logging -from typing import Dict, Optional, Tuple from six import iteritems @@ -24,7 +23,6 @@ import attr from canonicaljson import encode_canonical_json, json from signedjson.key import decode_verify_key_bytes from signedjson.sign import SignatureVerifyException, verify_signed_json -from signedjson.types import VerifyKey from unpaddedbase64 import decode_base64 from twisted.internet import defer @@ -1005,9 +1003,11 @@ class E2eKeysHandler(object): # We only get "master" and "self_signing" keys from remote servers and key_type in ["master", "self_signing"] ): - key, key_id, verify_key = yield self._retrieve_cross_signing_keys_for_remote_user( - user, key_type - ) + ( + key, + key_id, + verify_key, + ) = yield self._retrieve_cross_signing_keys_for_remote_user(user, key_type) if key is None: logger.warning("No %s key found for %s", key_type, user_id) |