aboutsummaryrefslogtreecommitdiffstats
path: root/tools/glib-client-marshaller-gen.py
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-01-04 18:28:17 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-01-04 18:29:06 +0800
commit403ebcfcc6bcf95b1ef914de48ac5509c284b150 (patch)
tree347c425d2247a6125fb0bdff8acc9dbca804be0b /tools/glib-client-marshaller-gen.py
parent0aa79adae47a074f0fd59762eec0c133ca48ae2a (diff)
downloadgsoc2013-empathy-403ebcfcc6bcf95b1ef914de48ac5509c284b150.tar
gsoc2013-empathy-403ebcfcc6bcf95b1ef914de48ac5509c284b150.tar.gz
gsoc2013-empathy-403ebcfcc6bcf95b1ef914de48ac5509c284b150.tar.bz2
gsoc2013-empathy-403ebcfcc6bcf95b1ef914de48ac5509c284b150.tar.lz
gsoc2013-empathy-403ebcfcc6bcf95b1ef914de48ac5509c284b150.tar.xz
gsoc2013-empathy-403ebcfcc6bcf95b1ef914de48ac5509c284b150.tar.zst
gsoc2013-empathy-403ebcfcc6bcf95b1ef914de48ac5509c284b150.zip
sync tools/ with telepathy-glib
This should allow Empathy to be build with Python 3. https://bugzilla.gnome.org/show_bug.cgi?id=687616
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 cb27d638a..cd9823bdf 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):