[web] unicode → six.text_type
authorJulien Cristau <julien.cristau@logilab.fr>
Wed, 30 Sep 2015 18:28:31 +0200
changeset 10742 8be1204cabdb
parent 10741 6666e52d8dd9
child 10743 1e1c560cc610
[web] unicode → six.text_type
web/views/cwuser.py
--- a/web/views/cwuser.py	Wed Sep 30 18:05:00 2015 +0200
+++ b/web/views/cwuser.py	Wed Sep 30 18:28:31 2015 +0200
@@ -22,6 +22,7 @@
 
 from hashlib import sha1 # pylint: disable=E0611
 
+from six import text_type
 from six.moves import range
 
 from logilab.mtconverter import xml_escape
@@ -252,6 +253,6 @@
         'group': tableview.MainEntityColRenderer(),
         'nb_users': tableview.EntityTableColRenderer(
             header=_('num. users'),
-            renderfunc=lambda w,x: w(unicode(x.num_users())),
+            renderfunc=lambda w,x: w(text_type(x.num_users())),
             sortfunc=lambda x: x.num_users()),
         }