Cope with longs being passed to xstransact.write.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
emellor@leeni.uk.xensource.com committed 2005-11-30 18:38:48 +00:00
1 parent df2ba9e15b
commit 9d72feba41
1 file changed
+4 -3
+4 -3
View File
@@ -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
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.