1--- tools/libglibcodegen.py.orig	2020-09-23 16:17:54 UTC
2+++ tools/libglibcodegen.py
3@@ -154,7 +154,7 @@ def type_to_gtype(s):
4         return ("GHashTable *", "DBUS_TYPE_G_STRING_STRING_HASHTABLE", "BOXED", False)
5     elif s[:2] == 'a{':  #some arbitrary hash tables
6         if s[2] not in ('y', 'b', 'n', 'q', 'i', 'u', 's', 'o', 'g'):
7-            raise Exception, "can't index a hashtable off non-basic type " + s
8+            raise Exception("can't index a hashtable off non-basic type " + s)
9         first = type_to_gtype(s[2])
10         second = type_to_gtype(s[3:-1])
11         return ("GHashTable *", "(dbus_g_type_get_map (\"GHashTable\", " + first[1] + ", " + second[1] + "))", "BOXED", False)
12@@ -169,4 +169,4 @@ def type_to_gtype(s):
13         return ("GValueArray *", gtype, "BOXED", True)
14
15     # we just don't know ..
16-    raise Exception, "don't know the GType for " + s
17+    raise Exception("don't know the GType for " + s)
18