summaryrefslogtreecommitdiff
path: root/sleekxmpp
diff options
context:
space:
mode:
Diffstat (limited to 'sleekxmpp')
-rw-r--r--sleekxmpp/plugins/xep_0059/stanza.py2
-rw-r--r--sleekxmpp/plugins/xep_0258/stanza.py4
2 files changed, 3 insertions, 3 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)
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')