diff options
author | Lance Stout <lancestout@gmail.com> | 2012-06-19 01:38:36 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-06-19 01:38:36 -0700 |
commit | 811955104968a055c651ea1fe97adc9f0ae61676 (patch) | |
tree | 3805256e632b71c39d0115783b6d80e055e629a1 /sleekxmpp/plugins/xep_0059/stanza.py | |
parent | 061489f03ad889d85d556b94a41ba05724e54f9c (diff) | |
download | slixmpp-811955104968a055c651ea1fe97adc9f0ae61676.tar.gz slixmpp-811955104968a055c651ea1fe97adc9f0ae61676.tar.bz2 slixmpp-811955104968a055c651ea1fe97adc9f0ae61676.tar.xz slixmpp-811955104968a055c651ea1fe97adc9f0ae61676.zip |
Don't compare against booleans using ==.
Diffstat (limited to 'sleekxmpp/plugins/xep_0059/stanza.py')
-rw-r--r-- | sleekxmpp/plugins/xep_0059/stanza.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/plugins/xep_0059/stanza.py b/sleekxmpp/plugins/xep_0059/stanza.py index 7c637d0b..7fad4636 100644 --- a/sleekxmpp/plugins/xep_0059/stanza.py +++ b/sleekxmpp/plugins/xep_0059/stanza.py @@ -93,7 +93,7 @@ class Set(ElementBase): def set_before(self, val): b = self.xml.find("{%s}before" % (self.namespace)) - if b is None and val == True: + if b is None and val is True: self._set_sub_text('{%s}before' % self.namespace, '', True) else: self._set_sub_text('{%s}before' % self.namespace, val) |