diff options
author | Hubert Chathi <hubert@uhoreg.ca> | 2018-11-14 21:40:52 -0500 |
---|---|---|
committer | Hubert Chathi <hubert@uhoreg.ca> | 2018-11-14 21:40:52 -0500 |
commit | bf679213c1ccb6893679b316a3bc0f2997629b4c (patch) | |
tree | 8b08e3a47efc45f36f54d7f49d487e51aea2ea9c | |
parent | limit notifications about attestations (diff) | |
download | synapse-bf679213c1ccb6893679b316a3bc0f2997629b4c.tar.xz |
work in Python 3
-rw-r--r-- | synapse/handlers/e2e_keys.py | 2 | ||||
-rw-r--r-- | synapse/storage/end_to_end_keys.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/e2e_keys.py b/synapse/handlers/e2e_keys.py index 3dd6d08f06..d81887f5b7 100644 --- a/synapse/handlers/e2e_keys.py +++ b/synapse/handlers/e2e_keys.py @@ -372,7 +372,7 @@ class E2eKeysHandler(object): if user_id not in attested_users: attested_users[user_id] = [] attested_users[user_id].append(attestation["device_id"]) - for user_id, devices in attested_users.iteritems(): + for user_id, devices in attested_users.items(): if req_user_id == user_id: # when making an attestation on your own device, notify # everyone who shares a room with you. This is the same as the diff --git a/synapse/storage/end_to_end_keys.py b/synapse/storage/end_to_end_keys.py index f7f7b77319..ff3ce84eb1 100644 --- a/synapse/storage/end_to_end_keys.py +++ b/synapse/storage/end_to_end_keys.py @@ -298,7 +298,7 @@ class EndToEndKeyStore(SQLBaseStore): "attestation": json.dumps(x), } for x in attestations - for from_user_id in x["signatures"].iterkeys() + for from_user_id in x["signatures"].keys() ], ) return self.runInteraction( |