diff options
Diffstat (limited to 'sleekxmpp/xmlstream/stanzabase.py')
-rw-r--r-- | sleekxmpp/xmlstream/stanzabase.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sleekxmpp/xmlstream/stanzabase.py b/sleekxmpp/xmlstream/stanzabase.py index 960e8a71..acb95786 100644 --- a/sleekxmpp/xmlstream/stanzabase.py +++ b/sleekxmpp/xmlstream/stanzabase.py @@ -210,6 +210,8 @@ class ElementBase(tostring.ToString): return self def __eq__(self, other): + if not isinstance(other, ElementBase): + return False values = self.getValues() for key in other: if key not in values or values[key] != other[key]: |