@register.filter
@stringfilter
def obfuscate_email(email):
    obfuscated = ""
    for char in email:
        try:
            output = (string.ascii_lowercase.index(char) + 97
                    if char in string.ascii_lowercase else None)
            output = (string.ascii_uppercase.index(char) + 65
                    if char in string.ascii_uppercase else output)
        except __HOLE__:
            output = None
        if output:
            output = "&#%s;" % output
        elif char == '@':
            output = '&#0064;'
        else:
            output = char
        obfuscated += output
    return mark_safe(obfuscated)
dataset/ETHPy150Open bueda/django-comrade/comrade/core/templatetags/obfuscation.py/obfuscate_email