VirtualMailManager/emailaddress.py
branchv0.6.x
changeset 322 94bd10e237e5
parent 320 011066435e6f
child 341 6709d0faf2f5
--- a/VirtualMailManager/emailaddress.py	Wed Jul 28 02:52:08 2010 +0000
+++ b/VirtualMailManager/emailaddress.py	Wed Jul 28 03:43:59 2010 +0000
@@ -42,14 +42,14 @@
 
     def __eq__(self, other):
         if isinstance(other, self.__class__):
-            return self._localpart == other.localpart and \
-                    self._domainname == other.domainname
+            return self._localpart == other._localpart and \
+                    self._domainname == other._domainname
         return NotImplemented
 
     def __ne__(self, other):
         if isinstance(other, self.__class__):
-            return self._localpart != other.localpart or \
-                    self._domainname != other.domainname
+            return self._localpart != other._localpart or \
+                    self._domainname != other._domainname
         return NotImplemented
 
     def __hash__(self):