fix commenting in py3

This commit is contained in:
Philip Bauer
2018-09-18 15:13:38 +02:00
parent a7d95a9449
commit a8f2db58ff
3 changed files with 15 additions and 9 deletions
+1 -1
View File
@@ -148,7 +148,7 @@ class Comment(CatalogAware, WorkflowAware, DynamicType, Traversable,
text = self.text
if text is None:
return ''
if isinstance(text, six.text_type):
if six.PY2 and isinstance(text, six.text_type):
text = text.encode('utf8')
transform = transforms.convertTo(
targetMimetype,