cubicweb/web/views/schema.py
changeset 12567 26744ad37953
parent 11767 432f87a63057
--- a/cubicweb/web/views/schema.py	Fri Apr 05 17:21:14 2019 +0200
+++ b/cubicweb/web/views/schema.py	Fri Apr 05 17:58:19 2019 +0200
@@ -26,8 +26,6 @@
 import os, os.path as osp
 import codecs
 
-from six import text_type
-
 from logilab.common.graph import GraphGenerator, DotBackend
 from logilab.common.ureports import Section, Table
 from logilab.common.registry import yes
@@ -281,7 +279,7 @@
     def cell_call(self, row, col):
         defaultval = self.cw_rset.rows[row][col]
         if defaultval is not None:
-            self.w(text_type(self.cw_rset.rows[row][col].unzpickle()))
+            self.w(str(self.cw_rset.rows[row][col].unzpickle()))
 
 class CWETypeRelationCardinalityCell(baseviews.FinalView):
     __regid__ = 'etype-rel-cardinality-cell'
@@ -489,7 +487,7 @@
         entity = self.cw_rset.get_entity(row, col)
         rschema = self._cw.vreg.schema.rschema(entity.rtype.name)
         rdef = rschema.rdefs[(entity.stype.name, entity.otype.name)]
-        constraints = [xml_escape(text_type(c)) for c in getattr(rdef, 'constraints')]
+        constraints = [xml_escape(str(c)) for c in getattr(rdef, 'constraints')]
         self.w(u'<br/>'.join(constraints))
 
 class CWAttributeOptionsCell(EntityView):