diff options
author | Lance Stout <lancestout@gmail.com> | 2011-11-14 09:15:43 -0800 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2011-11-14 09:15:43 -0800 |
commit | 43c4d23896437dbab9f6cfbe80e885394b84b638 (patch) | |
tree | cb24adba676eff655cd3ab9ebbcb74fcae566915 /sleekxmpp/xmlstream | |
parent | 9f9e8db8144204b64d099437c9cdcdd9944514bc (diff) | |
download | slixmpp-43c4d23896437dbab9f6cfbe80e885394b84b638.tar.gz slixmpp-43c4d23896437dbab9f6cfbe80e885394b84b638.tar.bz2 slixmpp-43c4d23896437dbab9f6cfbe80e885394b84b638.tar.xz slixmpp-43c4d23896437dbab9f6cfbe80e885394b84b638.zip |
Explicitly test for inequality in JIDs.
Fixes issue #113
Diffstat (limited to 'sleekxmpp/xmlstream')
-rw-r--r-- | sleekxmpp/xmlstream/jid.py | 6 |
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 |