streamcorpus_pipeline/emails.py
def fix_emails(text):
    '''Replace all angle bracket emails with a unique key.'''
    emails = bracket_emails.findall(text)

    keys = []
    for email in emails:
	_email = email.replace("<","&lt;").replace(">","&gt;")
        text = text.replace(email, _email)

    return text
def fix_emails(text):
    '''Replace all angle bracket emails with a unique key.'''
    emails = bracket_emails.findall(text)

    keys = []
    for email in emails:
	_email = email.replace("<","&lt;").replace(">","&gt;")
        text = text.replace(email, _email)

    return text
Replace all angle bracket emails with a unique key.