entities/__init__.py
changeset 10612 84468b90e9c1
parent 10411 4ee15441f2eb
child 10675 e0db937f5add
--- a/entities/__init__.py	Wed Sep 16 11:23:51 2015 +0200
+++ b/entities/__init__.py	Mon Sep 14 16:03:07 2015 +0200
@@ -19,6 +19,7 @@
 
 __docformat__ = "restructuredtext en"
 
+from six import string_types
 
 from logilab.common.decorators import classproperty
 
@@ -134,7 +135,7 @@
             return self.dc_title().lower()
         value = self.cw_attr_value(rtype)
         # do not restrict to `unicode` because Bytes will return a `str` value
-        if isinstance(value, basestring):
+        if isinstance(value, string_types):
             return self.printable_value(rtype, format='text/plain').lower()
         return value