[web/debug] Fix check for open sessions
authorJulien Cristau <julien.cristau@logilab.fr>
Wed, 09 Apr 2014 10:49:18 +0200
changeset 9670 5b661f58978c
parent 9669 283503f58400
child 9671 a16fcf064323
[web/debug] Fix check for open sessions itervalues returns an iterator, which never evaluates to False. Regression from 0bb18407c053 "[toward py3k] rewrite dict.keys() and dict.values() (part of #2711624)".
web/views/debug.py
--- a/web/views/debug.py	Thu Mar 20 15:42:23 2014 +0100
+++ b/web/views/debug.py	Wed Apr 09 10:49:18 2014 +0200
@@ -105,7 +105,7 @@
         w(u'</table>')
         if req.cnx.is_repo_in_memory and req.user.is_in_group('managers'):
             w(u'<h3>%s</h3>' % _('opened sessions'))
-            sessions = repo._sessions.itervalues()
+            sessions = repo._sessions.values()
             if sessions:
                 w(u'<ul>')
                 for session in sessions: