diff options
author | Erik Johnston <erik@matrix.org> | 2017-04-06 15:51:12 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-04-06 15:51:22 +0100 |
commit | 877c029c16c41b29efde120af7894f5ace43c8fd (patch) | |
tree | bde8d972082948e566ac768276bdf4ac9ac0362d | |
parent | Merge pull request #2106 from matrix-org/erikj/reduce_user_sync (diff) | |
download | synapse-877c029c16c41b29efde120af7894f5ace43c8fd.tar.xz |
Use iteritems
Diffstat (limited to '')
-rw-r--r-- | synapse/handlers/presence.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/presence.py b/synapse/handlers/presence.py index 53baf3e79a..9ed5af3cb4 100644 --- a/synapse/handlers/presence.py +++ b/synapse/handlers/presence.py @@ -596,14 +596,14 @@ class PresenceHandler(object): for user_id in user_ids } - missing = [user_id for user_id, state in states.items() if not state] + missing = [user_id for user_id, state in states.iteritems() if not state] if missing: # There are things not in our in memory cache. Lets pull them out of # the database. res = yield self.store.get_presence_for_users(missing) states.update(res) - missing = [user_id for user_id, state in states.items() if not state] + missing = [user_id for user_id, state in states.iteritems() if not state] if missing: new = { user_id: UserPresenceState.default(user_id) |