diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2013-01-04 18:28:17 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2013-01-04 18:29:06 +0800 |
commit | 403ebcfcc6bcf95b1ef914de48ac5509c284b150 (patch) | |
tree | 347c425d2247a6125fb0bdff8acc9dbca804be0b /tools/libglibcodegen.py | |
parent | 0aa79adae47a074f0fd59762eec0c133ca48ae2a (diff) | |
download | gsoc2013-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/libglibcodegen.py')
-rw-r--r-- | tools/libglibcodegen.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/libglibcodegen.py b/tools/libglibcodegen.py index 6a9d21485..6cd1a6277 100644 --- a/tools/libglibcodegen.py +++ b/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) |