def mask_email(ref, pepno=None):
    if ref.hasattr('refuri') and ref['refuri'].startswith('mailto:'):
        if ref['refuri'][8:] in non_masked_addresses:
            replacement = ref[0]
        else:
            replacement_text = ref.astext().replace('@', '&#32;&#97;t&#32;')
            replacement = nodes.raw('', replacement_text, format='html')
        if pepno is None:
            return replacement
        else:
            ref['refuri'] += '?subject=PEP%%20%s' % pepno
            ref[:] = [replacement]
            return ref
    else:
        return ref
Tests that targets outside of the context used as filters are parsed before use.
dataset/ETHPy150Open adieu/allbuttonspressed/docutils/transforms/peps.py/mask_email--crossover with--dataset/ETHPy150Open pantsbuild/pants/tests/python/pants_test/backend/graph_info/tasks/test_filter.py/FilterTest.test_filter_ancestor_out_of_context