Fix iterator to list conversion in ldap_entry module

PR #45778 fixes #45417
pull/46119/head
Gustavo Muniz do Carmo 7 years ago committed by Sviatoslav Sydorenko
parent 30314c15c7
commit 7a747341fb

@ -145,7 +145,7 @@ class LdapEntry(LdapGeneric):
attrs[name] = []
if isinstance(value, list):
attrs[name] = [map(to_bytes, value)]
attrs[name] = list(map(to_bytes, value))
else:
attrs[name].append(to_bytes(value))

Loading…
Cancel
Save