diff -r 9a9d57edb1c1 -r 46f934bebd85 web/views/debug.py --- a/web/views/debug.py Fri Sep 18 18:02:20 2015 +0200 +++ b/web/views/debug.py Fri Sep 18 18:03:19 2015 +0200 @@ -22,6 +22,8 @@ from time import strftime, localtime +from six import text_type + from logilab.mtconverter import xml_escape from cubicweb.predicates import none_rset, match_user_groups @@ -106,7 +108,7 @@ stats[k] = '%s / %s' % (stats[k]['size'], stats[k]['maxsize']) for element in sorted(stats): w(u'%s%s %s' - % (element, xml_escape(unicode(stats[element])), + % (element, xml_escape(text_type(stats[element])), element.endswith('percent') and '%' or '' )) w(u'') if req.cnx.is_repo_in_memory and req.user.is_in_group('managers'): @@ -116,7 +118,7 @@ w(u'