diff options
author | Jonathan de Jong <jonathan@automatia.nl> | 2021-04-20 12:50:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-20 11:50:49 +0100 |
commit | 495b214f4f8f45d16ffee851c8ab7a380dd0e2b2 (patch) | |
tree | 1aa4d00ca13939808946f994545dd9f136d2d256 /synapse/rest | |
parent | Port "Allow users to click account renewal links multiple times without hitti... (diff) | |
download | synapse-495b214f4f8f45d16ffee851c8ab7a380dd0e2b2.tar.xz |
Fix (final) Bugbear violations (#9838)
Diffstat (limited to 'synapse/rest')
-rw-r--r-- | synapse/rest/key/v2/remote_key_resource.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/key/v2/remote_key_resource.py b/synapse/rest/key/v2/remote_key_resource.py index c57ac22e58..f648678b09 100644 --- a/synapse/rest/key/v2/remote_key_resource.py +++ b/synapse/rest/key/v2/remote_key_resource.py @@ -144,7 +144,7 @@ class RemoteKey(DirectServeJsonResource): # Note that the value is unused. cache_misses = {} # type: Dict[str, Dict[str, int]] - for (server_name, key_id, from_server), results in cached.items(): + for (server_name, key_id, _), results in cached.items(): results = [(result["ts_added_ms"], result) for result in results] if not results and key_id is not None: @@ -206,7 +206,7 @@ class RemoteKey(DirectServeJsonResource): # Cast to bytes since postgresql returns a memoryview. json_results.add(bytes(most_recent_result["key_json"])) else: - for ts_added, result in results: + for _, result in results: # Cast to bytes since postgresql returns a memoryview. json_results.add(bytes(result["key_json"])) |