summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins
diff options
context:
space:
mode:
authorCorrel Roush <croush@coredial.com>2011-12-16 17:41:16 +0000
committerCorrel Roush <croush@coredial.com>2011-12-16 17:41:16 +0000
commit9950208d06357f199a6edb0b56bd23db9a8253c1 (patch)
tree145cdaa51bb47ba25eb9cd5232039cdbeda1ae75 /sleekxmpp/plugins
parenta67e16d1b70c15e0fc8674d57280f41af8fb71c3 (diff)
downloadslixmpp-9950208d06357f199a6edb0b56bd23db9a8253c1.tar.gz
slixmpp-9950208d06357f199a6edb0b56bd23db9a8253c1.tar.bz2
slixmpp-9950208d06357f199a6edb0b56bd23db9a8253c1.tar.xz
slixmpp-9950208d06357f199a6edb0b56bd23db9a8253c1.zip
Fixes Issue #123: Corrected boolean xml to python conversion
Diffstat (limited to 'sleekxmpp/plugins')
-rw-r--r--sleekxmpp/plugins/xep_0009/binding.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/plugins/xep_0009/binding.py b/sleekxmpp/plugins/xep_0009/binding.py
index ef34b580..7743251d 100644
--- a/sleekxmpp/plugins/xep_0009/binding.py
+++ b/sleekxmpp/plugins/xep_0009/binding.py
@@ -105,7 +105,7 @@ def _xml2py(value):
if value.find('{%s}int' % namespace) is not None:
return int(value.find('{%s}int' % namespace).text)
if value.find('{%s}boolean' % namespace) is not None:
- return bool(value.find('{%s}boolean' % namespace).text)
+ return bool(int(value.find('{%s}boolean' % namespace).text))
if value.find('{%s}string' % namespace) is not None:
return value.find('{%s}string' % namespace).text
if value.find('{%s}double' % namespace) is not None: