summaryrefslogtreecommitdiff
path: root/net-im/telepathy-logger/files/patch-tools_libglibcodegen.py
diff options
context:
space:
mode:
authorSteve Wills <swills@FreeBSD.org>2020-09-28 20:09:59 +0000
committerSteve Wills <swills@FreeBSD.org>2020-09-28 20:09:59 +0000
commitb90364b34fa501d372eb771c126025a902566f0d (patch)
treed9561c363d970eb69b46f3c793ed20972c261816 /net-im/telepathy-logger/files/patch-tools_libglibcodegen.py
parentx11/libinput: Update to 1.6.1 (diff)
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
Notes
Notes: svn path=/head/; revision=550445
Diffstat (limited to 'net-im/telepathy-logger/files/patch-tools_libglibcodegen.py')
-rw-r--r--net-im/telepathy-logger/files/patch-tools_libglibcodegen.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/net-im/telepathy-logger/files/patch-tools_libglibcodegen.py b/net-im/telepathy-logger/files/patch-tools_libglibcodegen.py
new file mode 100644
index 000000000000..40ba243eccfe
--- /dev/null
+++ b/net-im/telepathy-logger/files/patch-tools_libglibcodegen.py
@@ -0,0 +1,17 @@
+--- tools/libglibcodegen.py.orig 2020-09-23 16:17:54 UTC
++++ tools/libglibcodegen.py
+@@ -154,7 +154,7 @@ def type_to_gtype(s):
+ return ("GHashTable *", "DBUS_TYPE_G_STRING_STRING_HASHTABLE", "BOXED", False)
+ elif s[:2] == 'a{': #some arbitrary hash tables
+ if s[2] not in ('y', 'b', 'n', 'q', 'i', 'u', 's', 'o', 'g'):
+- raise Exception, "can't index a hashtable off non-basic type " + s
++ raise Exception("can't index a hashtable off non-basic type " + s)
+ first = type_to_gtype(s[2])
+ second = type_to_gtype(s[3:-1])
+ return ("GHashTable *", "(dbus_g_type_get_map (\"GHashTable\", " + first[1] + ", " + second[1] + "))", "BOXED", False)
+@@ -169,4 +169,4 @@ def type_to_gtype(s):
+ return ("GValueArray *", gtype, "BOXED", True)
+
+ # we just don't know ..
+- raise Exception, "don't know the GType for " + s
++ raise Exception("don't know the GType for " + s)