in app/lib/ldap.py [0:0]
def attr_to_list(attr): """Converts a list of bytestring attribute values to a unique list of strings""" return list(set([value for value in attr or []]))