From b90364b34fa501d372eb771c126025a902566f0d Mon Sep 17 00:00:00 2001 From: Steve Wills Date: Mon, 28 Sep 2020 20:09:59 +0000 Subject: telepathy ports: fix build with python 3 PR: 249549 PR: 249550 PR: 249570 PR: 249734 PR: 249735 PR: 249738 Approved by: desktop (tcberner) Obtained from: ArchLinux, see Bugzilla PRs for details --- .../patch-tools_glib-client-marshaller-gen.py | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 net-im/telepathy-gabble/files/patch-tools_glib-client-marshaller-gen.py (limited to 'net-im/telepathy-gabble/files/patch-tools_glib-client-marshaller-gen.py') diff --git a/net-im/telepathy-gabble/files/patch-tools_glib-client-marshaller-gen.py b/net-im/telepathy-gabble/files/patch-tools_glib-client-marshaller-gen.py new file mode 100644 index 000000000000..9a8ef0db6b77 --- /dev/null +++ b/net-im/telepathy-gabble/files/patch-tools_glib-client-marshaller-gen.py @@ -0,0 +1,37 @@ +--- tools/glib-client-marshaller-gen.py.orig 2014-05-07 14:28:02 UTC ++++ 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.sort() ++ all = list(self.marshallers.keys()) ++ sorted(all) + 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): -- cgit v1.2.3