diff options
author | Adrian Tschira <nota@notafile.com> | 2018-04-15 16:51:07 +0200 |
---|---|---|
committer | Adrian Tschira <nota@notafile.com> | 2018-04-15 20:39:43 +0200 |
commit | 36c59ce66908a770b580c95bee0dd3aaf9906f0e (patch) | |
tree | 6a4190850b20083b4637276bc72e49d1fc2a4a53 /synapse/app/synchrotron.py | |
parent | Merge branch 'master' of https://github.com/matrix-org/synapse into develop (diff) | |
download | synapse-36c59ce66908a770b580c95bee0dd3aaf9906f0e.tar.xz |
Use six.itervalues in some places
There's more where that came from Signed-off-by: Adrian Tschira <nota@notafile.com>
Diffstat (limited to 'synapse/app/synchrotron.py')
-rw-r--r-- | synapse/app/synchrotron.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/app/synchrotron.py b/synapse/app/synchrotron.py index 508b66613d..2fddcd935a 100644 --- a/synapse/app/synchrotron.py +++ b/synapse/app/synchrotron.py @@ -58,6 +58,8 @@ from synapse.util.versionstring import get_version_string from twisted.internet import defer, reactor from twisted.web.resource import NoResource +from six import iteritems + logger = logging.getLogger("synapse.app.synchrotron") @@ -211,7 +213,7 @@ class SynchrotronPresence(object): def get_currently_syncing_users(self): return [ - user_id for user_id, count in self.user_to_num_current_syncs.iteritems() + user_id for user_id, count in iteritems(self.user_to_num_current_syncs) if count > 0 ] |