mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
Cope with longs being passed to xstransact.write.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
1 parent
df2ba9e15b
commit
9d72feba41
1 file changed
+4
-3
@@ -198,9 +198,10 @@ class xstransact:
|
||||
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
|
||||
|
||||