summaryrefslogtreecommitdiff
path: root/tools/glib-client-marshaller-gen.py
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-09-23 16:05:45 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-09-25 11:00:48 +0200
commit4a9fdeb64bc87f09e44ecc0f9c6acaea8bf11f20 (patch)
tree41bb3585a34125aaa26408de78da312226a0bc7c /tools/glib-client-marshaller-gen.py
parent15f9b0e7259c46747326758d62c5a9ecb6ce3af2 (diff)
downloadtelepathy-logger-4a9fdeb64bc87f09e44ecc0f9c6acaea8bf11f20.tar.gz
sync tools/ with tp-glib master
Needed to stop using deprecated API in generated code. https://bugs.freedesktop.org/show_bug.cgi?id=69797
Diffstat (limited to 'tools/glib-client-marshaller-gen.py')
-rw-r--r--tools/glib-client-marshaller-gen.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/tools/glib-client-marshaller-gen.py b/tools/glib-client-marshaller-gen.py
index cb27d63..cd9823b 100644
--- a/tools/glib-client-marshaller-gen.py
+++ b/tools/glib-client-marshaller-gen.py
@@ -31,23 +31,23 @@ class Generator(object):
for signal in signals:
self.do_signal(signal)
- print 'void'
- print '%s_register_dbus_glib_marshallers (void)' % self.prefix
- print '{'
+ print('void')
+ print('%s_register_dbus_glib_marshallers (void)' % self.prefix)
+ print('{')
- all = self.marshallers.keys()
+ all = list(self.marshallers.keys())
all.sort()
for marshaller in all:
rhs = self.marshallers[marshaller]
- print ' dbus_g_object_register_marshaller ('
- print ' g_cclosure_marshal_generic,'
- print ' G_TYPE_NONE, /* return */'
+ print(' dbus_g_object_register_marshaller (')
+ print(' g_cclosure_marshal_generic,')
+ print(' G_TYPE_NONE, /* return */')
for type in rhs:
- print ' G_TYPE_%s,' % type.replace('VOID', 'NONE')
- print ' G_TYPE_INVALID);'
+ print(' G_TYPE_%s,' % type.replace('VOID', 'NONE'))
+ print(' G_TYPE_INVALID);')
- print '}'
+ print('}')
def types_to_gtypes(types):