

def get_attributes(self):
    d = {
        
    }
    fpath = './/{{{0}}}AttributeStatement/{{{0}}}Attribute'.format(NS['saml'])
    for el in self.xml.findall(fpath):
        attr_name = el.get('Name')
        val_el = el.find('./{{{0}}}AttributeValue'.format(NS['saml']))
        attr_value = val_el.text
        d.setdefault(attr_name, []).append(attr_value)
    for key in d:
        if (len(d[key]) == 1):
            d[fpath] = d[key][0]
    return d

dataset/ETHPy150Open stephenpascoe/esgf-pyclient/pyesgf/security/ats.py AttributeServiceResponse.get_attributes/VarMisuse@115/164 `key`->`fpath`