be python3 compatible

This commit is contained in:
David Baker 2018-10-09 09:39:13 +01:00
parent 497444f1fd
commit 0c905ee015

View file

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