diff options
author | Alastair Tse <atse@xensource.com> | 2007-01-26 15:44:41 +0000 |
---|---|---|
committer | Alastair Tse <atse@xensource.com> | 2007-01-26 15:44:41 +0000 |
commit | 68da406e5164a4d5069452bb37720d577d73d9cc (patch) | |
tree | 90f77810c14328513b47b333b1d7d88f09c158d4 /tools | |
parent | f3ada9be623f895b62e6d2df8e344c156f9f1387 (diff) | |
download | xen-68da406e5164a4d5069452bb37720d577d73d9cc.tar.gz xen-68da406e5164a4d5069452bb37720d577d73d9cc.tar.bz2 xen-68da406e5164a4d5069452bb37720d577d73d9cc.zip |
[XEND] Floats for not need to be stringified in Xen API.
Signed-off-by: Alastair Tse <atse@xensource.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/python/xen/util/xmlrpclib2.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/python/xen/util/xmlrpclib2.py b/tools/python/xen/util/xmlrpclib2.py index ac95d4cf39..c701020b15 100644 --- a/tools/python/xen/util/xmlrpclib2.py +++ b/tools/python/xen/util/xmlrpclib2.py @@ -50,8 +50,7 @@ except ImportError: def stringify(value): - if isinstance(value, float) or \ - isinstance(value, long) or \ + if isinstance(value, long) or \ (isinstance(value, int) and not isinstance(value, bool)): return str(value) elif isinstance(value, dict): |