--- a/cubicweb/hooks/integrity.py Fri Apr 05 17:21:14 2019 +0200
+++ b/cubicweb/hooks/integrity.py Fri Apr 05 17:58:19 2019 +0200
@@ -23,8 +23,6 @@
from threading import Lock
-from six import text_type
-
from cubicweb import validation_error, neg_role
from cubicweb.schema import (META_RTYPES, WORKFLOW_RTYPES,
RQLConstraint, RQLUniqueConstraint)
@@ -276,7 +274,7 @@
value = edited[attr]
except KeyError:
continue # no text to tidy
- if isinstance(value, text_type): # filter out None and Binary
+ if isinstance(value, str): # filter out None and Binary
if getattr(entity, str(metaattr)) == 'text/html':
edited[attr] = soup2xhtml(value, self._cw.encoding)