fritzy/SleekXMPP — Issue #113: JIDs report equal and unequal at the same time
Author: TheGurke
Created: 2011-11-14 17:04:54+00:00
State: open

Minimal broken example:

>>> from sleekxmpp.xmlstream.jid import JID
>>> JID("name@domain.org") == JID("name@domain.org")
True
>>> JID("name@domain.org") != JID("name@domain.org")
True

Solution: Explicitly implement unequal method in xmlstream/jid.py

def __ne__(self, other):
"""
Two JIDs are considered unequal if they are not equal.
"""
return not self == other