1
0

work in Python 3

This commit is contained in:
Hubert Chathi
2018-11-14 21:40:52 -05:00
parent f405b1b58c
commit bf679213c1
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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(