diff options
author | Amber Brown <hawkowl@atleastfornow.net> | 2018-07-21 15:47:18 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-21 15:47:18 +1000 |
commit | 3132b89f12f0386558045683ad198f090b0e2c90 (patch) | |
tree | 4b4dfe0adf23374fa6922513eef856f484a47a99 /synapse/events | |
parent | Merge pull request #3572 from matrix-org/rav/linearizer_cancellation (diff) | |
download | synapse-3132b89f12f0386558045683ad198f090b0e2c90.tar.xz |
Make the rest of the .iterwhatever go away (#3562)
Diffstat (limited to 'synapse/events')
-rw-r--r-- | synapse/events/snapshot.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/events/snapshot.py b/synapse/events/snapshot.py index bcd9bb5946..f83a1581a6 100644 --- a/synapse/events/snapshot.py +++ b/synapse/events/snapshot.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +from six import iteritems + from frozendict import frozendict from twisted.internet import defer @@ -159,7 +161,7 @@ def _encode_state_dict(state_dict): return [ (etype, state_key, v) - for (etype, state_key), v in state_dict.iteritems() + for (etype, state_key), v in iteritems(state_dict) ] |