Fixes Issue #123: Corrected boolean xml to python conversion

This commit is contained in:
Correl Roush 2011-12-16 17:41:16 +00:00
parent a67e16d1b7
commit 9950208d06

View file

@ -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: