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

Signed-off-by: Alastair Tse <atse@xensource.com>
This commit is contained in:
Alastair Tse committed 2007-01-26 15:44:41 +00:00
1 parent f3ada9be62
commit 68da406e51
1 file changed
+1 -2
+1 -2
View File
@@ -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):
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.