mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 18:43:53 +01:00
be python3 compatible
This commit is contained in:
parent
497444f1fd
commit
0c905ee015
1 changed files with 3 additions and 2 deletions
|
@ -15,6 +15,7 @@
|
|||
|
||||
import logging
|
||||
|
||||
from six import iteritems
|
||||
from twisted.internet import defer
|
||||
|
||||
from synapse.api.errors import RoomKeysVersionError, StoreError, SynapseError
|
||||
|
@ -137,8 +138,8 @@ class E2eRoomKeysHandler(object):
|
|||
|
||||
# go through the room_keys.
|
||||
# XXX: this should/could be done concurrently, given we're in a lock.
|
||||
for room_id, room in room_keys['rooms'].iteritems():
|
||||
for session_id, session in room['sessions'].iteritems():
|
||||
for room_id, room in iteritems(room_keys['rooms']):
|
||||
for session_id, session in iteritems(room['sessions']):
|
||||
yield self._upload_room_key(
|
||||
user_id, version, room_id, session_id, session
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue