[pkg-fso-commits] [SCM] Various useful tools for an FSO installation branch, master, updated. debian/0.git20080812.2-32-gb5a13bb
Michael 'Mickey' Lauer
mickey at vanille-media.de
Sun Sep 27 16:11:41 UTC 2009
The following commit has been merged in the master branch:
commit f894801916cc4d0e912e4553490dc215276c52a9
Author: Michael 'Mickey' Lauer <mickey at vanille-media.de>
Date: Wed Jan 21 13:41:06 2009 +0100
mdbus: learn how to convert doubles. Thanks yoyo
diff --git a/mickeydbus/mdbus b/mickeydbus/mdbus
index 0cd8867..f86517b 100755
--- a/mickeydbus/mdbus
+++ b/mickeydbus/mdbus
@@ -7,7 +7,7 @@ Mickey's own dbus introspection utility.
GPLv2 or later
"""
-__version__ = "0.9.9.9"
+__version__ = "0.9.9.10"
from xml.parsers.expat import ExpatError, ParserCreate
from dbus.exceptions import IntrospectionParserException
@@ -168,6 +168,8 @@ def dbus_to_python(v):
#----------------------------------------------------------------------------#
if isinstance(v, dbus.Int64) or isinstance(v, dbus.Int32) or type(v) == types.IntType:
return int(v)
+ elif isinstance(v, dbus.Double) or type(v) == types.FloatType:
+ return float(v)
elif isinstance(v, dbus.String) or type(v) == types.StringType:
return str(v)
elif isinstance(v, dbus.Dictionary) or type(v) == types.DictType:
--
Various useful tools for an FSO installation
More information about the pkg-fso-commits
mailing list