summaryrefslogtreecommitdiffstats
path: root/ipaserver/plugins/group.py
diff options
context:
space:
mode:
authorChristian Heimes <cheimes@redhat.com>2018-09-26 12:24:33 +0200
committerChristian Heimes <cheimes@redhat.com>2018-09-27 16:11:18 +0200
commit964a9bdcec1110b9f108704536dc3ce5487ee80c (patch)
tree18d20cefece5c59134e0583f6ef2d3841406f813 /ipaserver/plugins/group.py
parent78c722d4c3b939d94d5dcfb46ede52f242ebaeb2 (diff)
downloadfreeipa-964a9bdcec1110b9f108704536dc3ce5487ee80c.tar.gz
freeipa-964a9bdcec1110b9f108704536dc3ce5487ee80c.tar.xz
freeipa-964a9bdcec1110b9f108704536dc3ce5487ee80c.zip
Py3: Replace six.string_types with str
In Python 3, six.string_types is just an alias for str. See: https://pagure.io/freeipa/issue/7715 Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
Diffstat (limited to 'ipaserver/plugins/group.py')
-rw-r--r--ipaserver/plugins/group.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipaserver/plugins/group.py b/ipaserver/plugins/group.py
index 9e9c047fb..9eaf06761 100644
--- a/ipaserver/plugins/group.py
+++ b/ipaserver/plugins/group.py
@@ -521,7 +521,7 @@ class group_find(LDAPSearch):
search_kw = {}
config = ldap.get_ipa_config()
attrs = config.get(self.obj.search_attributes_config, [])
- if len(attrs) == 1 and isinstance(attrs[0], six.string_types):
+ if len(attrs) == 1 and isinstance(attrs[0], str):
search_attrs = attrs[0].split(',')
for a in search_attrs:
search_kw[a] = criteria