# HG changeset patch # User souliane # Date 1387356670 -3600 # Node ID 6ce8515ee8f5bc38516ff965fcbd631767ce06d8 # Parent 6e36b44cbd34b933a492e3dccdf140e4a757118d browser_side: fix internal JID class equality operator diff -r 6e36b44cbd34 -r 6ce8515ee8f5 browser_side/jid.py --- a/browser_side/jid.py Wed Dec 18 08:59:44 2013 +0100 +++ b/browser_side/jid.py Wed Dec 18 09:51:10 2013 +0100 @@ -50,3 +50,7 @@ """return True if the jid is xmpp compliant""" #FIXME: always return True for the moment return True + + def __eq__(self, other): + """Redefine equality operator to implement the naturally expected test""" + return self.node == other.node and self.domain == other.domain and self.resource == other.resource