def _get_el_attributes(lxml_el, ns=None, nsmap=None):
    """Return the XML attributes of lxml ``Element`` instance lxml_el as a dict
    where namespaced attributes are represented via colon-delimiting and using
    snake case.
    """
    attrs = {}
    for attr, val in lxml_el.items():
        attr = _to_colon_ns(attr, default_ns=ns, nsmap=nsmap)
        attrs[attr] = val
    return attrs
def _get_el_attributes ( lxml_el , ns = None , nsmap = None ) : attrs = { } for attr , val in lxml_el . items ( ) : attr = _to_colon_ns ( attr , default_ns = ns , nsmap = nsmap ) attrs [ attr ] = val return attrs
Return the XML attributes of lxml ``Element`` instance lxml_el as a dict
    where namespaced attributes are represented via colon-delimiting and using
    snake case.