Explicitly test for inequality in JIDs.

Fixes issue #113
This commit is contained in:
Lance Stout
2011-11-14 09:15:43 -08:00
parent 9f9e8db814
commit 43c4d23896
2 changed files with 19 additions and 0 deletions

View File

@@ -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