def findLinksRel(link_attrs_list, target_rel):
    # XXX: TESTME
    matchesTarget = lambda attrs: linkHasRel(attrs, target_rel)
    return filter(matchesTarget, link_attrs_list)
Filter the list of link attributes on whether it has target_rel
dataset/ETHPy150Open CollabQ/CollabQ/openid/consumer/html_parse.py/findLinksRel