entities/authobjs.py
changeset 10612 84468b90e9c1
parent 10141 62e1f9749d3a
--- a/entities/authobjs.py	Wed Sep 16 11:23:51 2015 +0200
+++ b/entities/authobjs.py	Mon Sep 14 16:03:07 2015 +0200
@@ -19,6 +19,8 @@
 
 __docformat__ = "restructuredtext en"
 
+from six import string_types
+
 from logilab.common.decorators import cached
 
 from cubicweb import Unauthorized
@@ -126,7 +128,7 @@
         :type groups: str or iterable(str)
         :param groups: a group name or an iterable on group names
         """
-        if isinstance(groups, basestring):
+        if isinstance(groups, string_types):
             groups = frozenset((groups,))
         elif isinstance(groups, (tuple, list)):
             groups = frozenset(groups)