(attr)
return (attr[0][0] or ''), attr[0][1]
Return an appropriate key for an attribute for sorting

    Attributes have a namespace that can be either ``None`` or a string. We
    can't compare the two because they're different types, so we convert
    ``None`` to an empty string first.
Return an appropriate key for an attribute for sorting
Return an appropriate key for an attribute for sorting
def _attr_key(attr):
    """Return an appropriate key for an attribute for sorting

    Attributes have a namespace that can be either ``None`` or a string. We
    can't compare the two because they're different types, so we convert
    ``None`` to an empty string first.

    """
    return (attr[0][0] or ''), attr[0][1]
def _attr_key ( attr ) : return ( attr [ 0 ] [ 0 ] or '' ) , attr [ 0 ] [ 1 ]