VirtualMailManager/emailaddress.py
branchv0.7.x
changeset 673 de046a3b29a5
parent 643 df1e3b67882a
child 676 2bc11dada296
equal deleted inserted replaced
672:d3fd9bb0a5ea 673:de046a3b29a5
    14      DOMAIN_NO_NAME, INVALID_ADDRESS, LOCALPART_INVALID, LOCALPART_TOO_LONG, \
    14      DOMAIN_NO_NAME, INVALID_ADDRESS, LOCALPART_INVALID, LOCALPART_TOO_LONG, \
    15      DOMAIN_INVALID
    15      DOMAIN_INVALID
    16 from VirtualMailManager.errors import DomainError, EmailAddressError as EAErr
    16 from VirtualMailManager.errors import DomainError, EmailAddressError as EAErr
    17 
    17 
    18 
    18 
    19 RE_LOCALPART = re.compile(r"[^\w!#$%&'\*\+-\.\/=?^_`{\|}~]")
    19 RE_LOCALPART = re.compile(r"[^\w!#$%&'\*\+-\.\/=?^_`{\|}~]", re.ASCII)
    20 _ = lambda msg: msg
    20 _ = lambda msg: msg
    21 
    21 
    22 
    22 
    23 class EmailAddress(object):
    23 class EmailAddress(object):
    24     """Simple class for validated e-mail addresses."""
    24     """Simple class for validated e-mail addresses."""