# HG changeset patch # User Denis Laxalde # Date 1518688968 -3600 # Node ID e2953e0de494463bb7d7ee77866dac62c7159f76 # Parent 77a543e7878a64fd8369a2deb38cf277b1c08173 [views] unicode → six.text_type in views/authentication.py diff -r 77a543e7878a -r e2953e0de494 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 . """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 '' % (unicode(self.user.login), id(self)) + return '' % (text_type(self.user.login), id(self)) @property def anonymous_session(self):