diff options
author | Simon Feltman <sfeltman@src.gnome.org> | 2014-04-28 23:32:50 -0700 |
---|---|---|
committer | Simon Feltman <sfeltman@src.gnome.org> | 2014-05-01 21:41:57 -0700 |
commit | c83efc88fbc3b32f2fcc19049005bf730034a406 (patch) | |
tree | ebb4da95eddb5d30634e6735ea7a9479060d5ed5 | |
parent | 7af04431c60a81f58d9c0521353b71c84ee5a568 (diff) | |
download | gobject-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.py | 2 |
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): |