[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [XEND] Floats for not need to be stringified in Xen API.
# HG changeset patch # User Alastair Tse <atse@xxxxxxxxxxxxx> # Date 1169826281 0 # Node ID 93d3ff513609694b40b802579a94963fd112b4fc # Parent b8b75fdbd21f83b871bec32a7bb4a10e478394d0 [XEND] Floats for not need to be stringified in Xen API. Signed-off-by: Alastair Tse <atse@xxxxxxxxxxxxx> --- tools/python/xen/util/xmlrpclib2.py | 3 +-- 1 files changed, 1 insertion(+), 2 deletions(-) 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): _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |