direct-io.hg

changeset 13640:93d3ff513609

[XEND] Floats for not need to be stringified in Xen API.

Signed-off-by: Alastair Tse <atse@xensource.com>
author Alastair Tse <atse@xensource.com>
date Fri Jan 26 15:44:41 2007 +0000 (2007-01-26)
parents b8b75fdbd21f
children b97780b7080d
files tools/python/xen/util/xmlrpclib2.py
line diff
     1.1 --- a/tools/python/xen/util/xmlrpclib2.py	Fri Jan 26 15:42:21 2007 +0000
     1.2 +++ b/tools/python/xen/util/xmlrpclib2.py	Fri Jan 26 15:44:41 2007 +0000
     1.3 @@ -50,8 +50,7 @@ except ImportError:
     1.4  
     1.5  
     1.6  def stringify(value):
     1.7 -    if isinstance(value, float) or \
     1.8 -       isinstance(value, long) or \
     1.9 +    if isinstance(value, long) or \
    1.10         (isinstance(value, int) and not isinstance(value, bool)):
    1.11          return str(value)
    1.12      elif isinstance(value, dict):