[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)".
--- 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: