mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-11 13:44:18 -05:00
be python3 compatible
This commit is contained in:
parent
497444f1fd
commit
0c905ee015
@ -15,6 +15,7 @@
|
|||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from six import iteritems
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
|
|
||||||
from synapse.api.errors import RoomKeysVersionError, StoreError, SynapseError
|
from synapse.api.errors import RoomKeysVersionError, StoreError, SynapseError
|
||||||
@ -137,8 +138,8 @@ class E2eRoomKeysHandler(object):
|
|||||||
|
|
||||||
# go through the room_keys.
|
# go through the room_keys.
|
||||||
# XXX: this should/could be done concurrently, given we're in a lock.
|
# XXX: this should/could be done concurrently, given we're in a lock.
|
||||||
for room_id, room in room_keys['rooms'].iteritems():
|
for room_id, room in iteritems(room_keys['rooms']):
|
||||||
for session_id, session in room['sessions'].iteritems():
|
for session_id, session in iteritems(room['sessions']):
|
||||||
yield self._upload_room_key(
|
yield self._upload_room_key(
|
||||||
user_id, version, room_id, session_id, session
|
user_id, version, room_id, session_id, session
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user