

def prepare_tag(next, token):
    tag = token[1]

    def select(context, result):
        for elem in result:
            for e in elem:
                if (e.tag == tag):
                    (yield e)
    return select

dataset/ETHPy150Open CollabQ/CollabQ/vendor/elementtree/ElementPath.py prepare_tag/original