cubicweb/web/views/uicfg.py
changeset 12567 26744ad37953
parent 12313 aa15dd521d04
child 12787 be63e0fd43d0
--- a/cubicweb/web/views/uicfg.py	Fri Apr 05 17:21:14 2019 +0200
+++ b/cubicweb/web/views/uicfg.py	Fri Apr 05 17:58:19 2019 +0200
@@ -56,8 +56,6 @@
 
 from itertools import repeat
 
-from six import string_types
-
 from cubicweb import neg_role
 from cubicweb.rtags import (RelationTags, RelationTagsBool, RelationTagsSet,
                             RelationTagsDict, NoTargetRelationTagsDict,
@@ -692,7 +690,7 @@
                 self.tag_relation((sschema, rschema, oschema, role), True)
 
     def _tag_etype_attr(self, etype, attr, desttype='*', *args, **kwargs):
-        if isinstance(attr, string_types):
+        if isinstance(attr, str):
             attr, role = attr, 'subject'
         else:
             attr, role = attr