summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0258/stanza.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-06-19 01:38:36 -0700
committerLance Stout <lancestout@gmail.com>2012-06-19 01:38:36 -0700
commit811955104968a055c651ea1fe97adc9f0ae61676 (patch)
tree3805256e632b71c39d0115783b6d80e055e629a1 /sleekxmpp/plugins/xep_0258/stanza.py
parent061489f03ad889d85d556b94a41ba05724e54f9c (diff)
downloadslixmpp-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_0258/stanza.py')
-rw-r--r--sleekxmpp/plugins/xep_0258/stanza.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sleekxmpp/plugins/xep_0258/stanza.py b/sleekxmpp/plugins/xep_0258/stanza.py
index d844e44c..4d828a46 100644
--- a/sleekxmpp/plugins/xep_0258/stanza.py
+++ b/sleekxmpp/plugins/xep_0258/stanza.py
@@ -88,7 +88,7 @@ class Catalog(ElementBase):
self._del_attr('restrict')
if value:
self._set_attr('restrict', 'true')
- elif value == False:
+ elif value is False:
self._set_attr('restrict', 'false')
@@ -109,7 +109,7 @@ class CatalogItem(ElementBase):
self._del_attr('default')
if value:
self._set_attr('default', 'true')
- elif value == False:
+ elif value is False:
self._set_attr('default', 'false')