diff options
author | Amber Brown <hawkowl@atleastfornow.net> | 2018-09-07 00:22:23 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-07 00:22:23 +1000 |
commit | 2608ebc04c8b7ffb3417eeb720801d70ddc7dccd (patch) | |
tree | 44cf4eae9b110f8f59af56ea1e302676b0fb1083 /synapse/handlers/sync.py | |
parent | Merge branch 'master' into develop (diff) | |
download | synapse-2608ebc04c8b7ffb3417eeb720801d70ddc7dccd.tar.xz |
Port handlers/ to Python 3 (#3803)
Diffstat (limited to 'synapse/handlers/sync.py')
-rw-r--r-- | synapse/handlers/sync.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py index ef20c2296c..0091ceb80e 100644 --- a/synapse/handlers/sync.py +++ b/synapse/handlers/sync.py @@ -545,7 +545,7 @@ class SyncHandler(object): member_ids = { state_key: event_id - for (t, state_key), event_id in state_ids.iteritems() + for (t, state_key), event_id in iteritems(state_ids) if t == EventTypes.Member } name_id = state_ids.get((EventTypes.Name, '')) @@ -774,7 +774,7 @@ class SyncHandler(object): logger.debug("filtering state from %r...", state_ids) state_ids = { t: event_id - for t, event_id in state_ids.iteritems() + for t, event_id in iteritems(state_ids) if cache.get(t[1]) != event_id } logger.debug("...to %r", state_ids) @@ -1753,7 +1753,7 @@ def _calculate_state( if lazy_load_members: p_ids.difference_update( - e for t, e in timeline_start.iteritems() + e for t, e in iteritems(timeline_start) if t[0] == EventTypes.Member ) |