[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Cope with longs being passed to xstransact.write.
# HG changeset patch # User emellor@xxxxxxxxxxxxxxxxxxxxxx # Node ID 341c56e34b0df02035b02b086070a810525e3d0a # Parent 7acd50d945d7c22f336deaafbeb682a8aa503d5b Cope with longs being passed to xstransact.write. Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx> diff -r 7acd50d945d7 -r 341c56e34b0d tools/python/xen/xend/xenstore/xstransact.py --- a/tools/python/xen/xend/xenstore/xstransact.py Wed Nov 30 18:38:14 2005 +++ b/tools/python/xen/xend/xenstore/xstransact.py Wed Nov 30 18:38:48 2005 @@ -198,9 +198,10 @@ if len(tup) == 2: (key, val) = tup try: - fmt = { str : "%s", - int : "%i", - float : "%f", + fmt = { str : "%s", + int : "%i", + float : "%f", + long : "%li", type(None) : None }[type(val)] except KeyError: raise TypeError _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |