# HG changeset patch # User Alastair Tse # Date 1169826281 0 # Node ID 93d3ff513609694b40b802579a94963fd112b4fc # Parent b8b75fdbd21f83b871bec32a7bb4a10e478394d0 [XEND] Floats for not need to be stringified in Xen API. Signed-off-by: Alastair Tse diff -r b8b75fdbd21f -r 93d3ff513609 tools/python/xen/util/xmlrpclib2.py --- a/tools/python/xen/util/xmlrpclib2.py Fri Jan 26 15:42:21 2007 +0000 +++ b/tools/python/xen/util/xmlrpclib2.py Fri Jan 26 15:44:41 2007 +0000 @@ -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):