

def format_results(self, results):
    '\n        Format the ldap results object into somthing that is reasonable\n        '
    if (not results):
        return None
    userobj = results[0][1]
    keymap = self.config.get('KEY_MAP')
    if keymap:
        return {key: scalar(userobj.get(value)) for (key, value) in keymap.items()}
    else:
        return {key: scalar(value) for (key, value) in value.items()}

dataset/ETHPy150Open ContinuumIO/flask-ldap-login/flask_ldap_login/__init__.py LDAPLoginManager.format_results/VarMisuse@99/140 `userobj`->`value`