[views] unicode → six.text_type in views/authentication.py 3.26
authorDenis Laxalde <denis.laxalde@logilab.fr>
Thu, 15 Feb 2018 11:02:48 +0100
branch3.26
changeset 12279 e2953e0de494
parent 12278 77a543e7878a
child 12280 577e8d3896b4
[views] unicode → six.text_type in views/authentication.py
cubicweb/web/views/authentication.py
--- a/cubicweb/web/views/authentication.py	Mon Mar 05 10:32:58 2018 +0100
+++ b/cubicweb/web/views/authentication.py	Thu Feb 15 11:02:48 2018 +0100
@@ -17,6 +17,8 @@
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
 """user authentication component"""
 
+from six import text_type
+
 from logilab.common.deprecation import class_renamed
 from logilab.common.textutils import unormalize
 
@@ -113,7 +115,7 @@
         self.data = {}
 
     def __unicode__(self):
-        return '<session %s (0x%x)>' % (unicode(self.user.login), id(self))
+        return '<session %s (0x%x)>' % (text_type(self.user.login), id(self))
 
     @property
     def anonymous_session(self):