entities/__init__.py
changeset 10675 e0db937f5add
parent 10612 84468b90e9c1
child 10840 5669e136860b
--- a/entities/__init__.py	Tue Sep 15 15:28:20 2015 +0200
+++ b/entities/__init__.py	Tue Sep 15 17:04:04 2015 +0200
@@ -19,7 +19,7 @@
 
 __docformat__ = "restructuredtext en"
 
-from six import string_types
+from six import text_type, string_types
 
 from logilab.common.decorators import classproperty
 
@@ -36,7 +36,7 @@
     @classproperty
     def cw_etype(cls):
         """entity type as a unicode string"""
-        return unicode(cls.__regid__)
+        return text_type(cls.__regid__)
 
     @classmethod
     def cw_create_url(cls, req, **kwargs):