mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-27 11:09:56 +00:00
Fixes Issue #123: Corrected boolean xml to python conversion
This commit is contained in:
parent
a67e16d1b7
commit
9950208d06
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ def _xml2py(value):
|
||||||
if value.find('{%s}int' % namespace) is not None:
|
if value.find('{%s}int' % namespace) is not None:
|
||||||
return int(value.find('{%s}int' % namespace).text)
|
return int(value.find('{%s}int' % namespace).text)
|
||||||
if value.find('{%s}boolean' % namespace) is not None:
|
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:
|
if value.find('{%s}string' % namespace) is not None:
|
||||||
return value.find('{%s}string' % namespace).text
|
return value.find('{%s}string' % namespace).text
|
||||||
if value.find('{%s}double' % namespace) is not None:
|
if value.find('{%s}double' % namespace) is not None:
|
||||||
|
|
Loading…
Reference in a new issue