in crashclouseau/hgauthors.py [0:0]
def clean_author(author):
"""Remove typos we can have in a author field"""
if author.startswith('"') and author.endswith('"'):
author = author[1:-1]
if author.endswith("."):
author = author[:-1]
if author.endswith(">>"):
author = author[:-1]
if author.startswith("="):
author = author[1:]
author = author.strip()
author = author.replace("%40", "@")
author = author.replace("%gmail", "@gmail")
author = unicodedata.normalize("NFC", author)
return author