ia64/xen-unstable

changeset 8139:341c56e34b0d

Cope with longs being passed to xstransact.write.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Wed Nov 30 18:38:48 2005 +0000 (2005-11-30)
parents 7acd50d945d7
children e33f8d664e2d
files tools/python/xen/xend/xenstore/xstransact.py
line diff
     1.1 --- a/tools/python/xen/xend/xenstore/xstransact.py	Wed Nov 30 18:38:14 2005 +0000
     1.2 +++ b/tools/python/xen/xend/xenstore/xstransact.py	Wed Nov 30 18:38:48 2005 +0000
     1.3 @@ -198,9 +198,10 @@ class xstransact:
     1.4              if len(tup) == 2:
     1.5                  (key, val) = tup
     1.6                  try:
     1.7 -                    fmt = { str : "%s",
     1.8 -                            int : "%i",
     1.9 -                            float : "%f",
    1.10 +                    fmt = { str        : "%s",
    1.11 +                            int        : "%i",
    1.12 +                            float      : "%f",
    1.13 +                            long       : "%li",
    1.14                              type(None) : None }[type(val)]
    1.15                  except KeyError:
    1.16                      raise TypeError