equal
deleted
inserted
replaced
13 import constants.ERROR as ERR |
13 import constants.ERROR as ERR |
14 |
14 |
15 RE_LOCALPART = """[^\w!#$%&'\*\+-\.\/=?^_`{\|}~]""" |
15 RE_LOCALPART = """[^\w!#$%&'\*\+-\.\/=?^_`{\|}~]""" |
16 |
16 |
17 class EmailAddress(object): |
17 class EmailAddress(object): |
|
18 __slots__ = ('_localpart', '_domainname') |
18 def __init__(self, address): |
19 def __init__(self, address): |
19 self._localpart = None |
20 self._localpart = None |
20 self._domainname = None |
21 self._domainname = None |
21 self.__chkAddress(address) |
22 self.__chkAddress(address) |
22 |
23 |