web/views/ibreadcrumbs.py
changeset 10702 f94c812c3669
parent 10666 7f6b5f023884
--- a/web/views/ibreadcrumbs.py	Fri Sep 18 14:50:44 2015 +0200
+++ b/web/views/ibreadcrumbs.py	Thu Sep 17 11:07:36 2015 +0200
@@ -22,6 +22,8 @@
 
 from warnings import warn
 
+from six import text_type
+
 from logilab.mtconverter import xml_escape
 
 from cubicweb import tags, uilib
@@ -141,7 +143,7 @@
                 xml_escape(url), xml_escape(uilib.cut(title, textsize))))
         else:
             textsize = self._cw.property_value('navigation.short-line-size')
-            w(xml_escape(uilib.cut(unicode(part), textsize)))
+            w(xml_escape(uilib.cut(text_type(part), textsize)))
 
 
 class BreadCrumbETypeVComponent(BreadCrumbEntityVComponent):