summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Feltman <sfeltman@src.gnome.org>2014-04-28 23:32:50 -0700
committerSimon Feltman <sfeltman@src.gnome.org>2014-05-01 21:41:57 -0700
commitc83efc88fbc3b32f2fcc19049005bf730034a406 (patch)
treeebb4da95eddb5d30634e6735ea7a9479060d5ed5
parent7af04431c60a81f58d9c0521353b71c84ee5a568 (diff)
downloadgobject-introspection-c83efc88fbc3b32f2fcc19049005bf730034a406.tar.gz
giscanner: Use modern exception handling for Python 3 compatibility
https://bugzilla.gnome.org/show_bug.cgi?id=679438
-rw-r--r--giscanner/maintransformer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/maintransformer.py b/giscanner/maintransformer.py
index d9811cfb..47d7bec4 100644
--- a/giscanner/maintransformer.py
+++ b/giscanner/maintransformer.py
@@ -747,7 +747,7 @@ class MainTransformer(object):
field.doc = tag.description
try:
self._adjust_container_type(parent, field, tag.annotations)
- except AttributeError, ex:
+ except AttributeError as ex:
print ex
def _apply_annotations_property(self, parent, prop):