Commit 41d2a77a authored by Dan Pascu's avatar Dan Pascu

Allow AccountInfo objects to compare to their own kind

parent d1273b9e
...@@ -45,6 +45,8 @@ class AccountInfo(object): ...@@ -45,6 +45,8 @@ class AccountInfo(object):
return self.name == other return self.name == other
elif isinstance(other, (Account, BonjourAccount)): elif isinstance(other, (Account, BonjourAccount)):
return self.account == other return self.account == other
elif isinstance(other, AccountInfo):
return self.account == other.account
return False return False
def __ne__(self, other): def __ne__(self, other):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment