diff options
author | Correl Roush <croush@coredial.com> | 2011-12-16 17:41:16 +0000 |
---|---|---|
committer | Correl Roush <croush@coredial.com> | 2011-12-16 17:41:16 +0000 |
commit | 9950208d06357f199a6edb0b56bd23db9a8253c1 (patch) | |
tree | 145cdaa51bb47ba25eb9cd5232039cdbeda1ae75 /sleekxmpp/plugins | |
parent | a67e16d1b70c15e0fc8674d57280f41af8fb71c3 (diff) | |
download | slixmpp-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.py | 2 |
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: |