VMM.EmailAddress: Added __slots__
authorPascal Volk <neverseen@users.sourceforge.net>
Thu, 13 Aug 2009 23:24:51 +0000
changeset 108 fb88585f17fe
parent 107 e98a0fdf1266
child 109 766299a8639d
VMM.EmailAddress: Added __slots__ aka post-sf.net-hg-update-commit
VirtualMailManager/EmailAddress.py
--- a/VirtualMailManager/EmailAddress.py	Wed Aug 12 04:38:30 2009 +0000
+++ b/VirtualMailManager/EmailAddress.py	Thu Aug 13 23:24:51 2009 +0000
@@ -15,6 +15,7 @@
 RE_LOCALPART = """[^\w!#$%&'\*\+-\.\/=?^_`{\|}~]"""
 
 class EmailAddress(object):
+    __slots__ = ('_localpart', '_domainname')
     def __init__(self, address):
         self._localpart = None
         self._domainname = None