mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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>
This commit is contained in:
@@ -1687,7 +1687,7 @@ def _create_idn_filter(cmd, ldap, term=None, **options):
|
||||
config = ldap.get_ipa_config()
|
||||
config_attrs = config.get(cmd.obj.search_attributes_config, [])
|
||||
if len(config_attrs) == 1 and (isinstance(config_attrs[0],
|
||||
six.string_types)):
|
||||
str)):
|
||||
search_attrs = config_attrs[0].split(',')
|
||||
|
||||
search_kw['objectclass'] = cmd.obj.object_class
|
||||
|
||||
Reference in New Issue
Block a user