summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream
diff options
context:
space:
mode:
Diffstat (limited to 'sleekxmpp/xmlstream')
-rw-r--r--sleekxmpp/xmlstream/jid.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/sleekxmpp/xmlstream/jid.py b/sleekxmpp/xmlstream/jid.py
index 36b33056..3d617f5a 100644
--- a/sleekxmpp/xmlstream/jid.py
+++ b/sleekxmpp/xmlstream/jid.py
@@ -135,3 +135,9 @@ class JID(object):
"""
other = JID(other)
return self.full == other.full
+
+ def __ne__(self, other):
+ """
+ Two JIDs are considered unequal if they are not equal.
+ """
+ return not self == other