mercurial/utils/stringutil.py
changeset 48946 642e31cb55f0
parent 48911 46b3ecfb16e2
child 49021 51aed118f9dc
equal deleted inserted replaced
48945:55d132525155 48946:642e31cb55f0
   494     f = author.find(b'@')
   494     f = author.find(b'@')
   495     return author[:f].replace(b'.', b' ')
   495     return author[:f].replace(b'.', b' ')
   496 
   496 
   497 
   497 
   498 @attr.s(hash=True)
   498 @attr.s(hash=True)
   499 class mailmapping(object):
   499 class mailmapping:
   500     """Represents a username/email key or value in
   500     """Represents a username/email key or value in
   501     a mailmap file"""
   501     a mailmap file"""
   502 
   502 
   503     email = attr.ib()
   503     email = attr.ib()
   504     name = attr.ib(default=None)
   504     name = attr.ib(default=None)