[gobject-introspection] giscanner: Use modern exception handling for Python 3 compatibility
- From: Simon Feltman <sfeltman src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] giscanner: Use modern exception handling for Python 3 compatibility
- Date: Fri, 2 May 2014 04:45:05 +0000 (UTC)
commit c83efc88fbc3b32f2fcc19049005bf730034a406
Author: Simon Feltman <sfeltman src gnome org>
Date: Mon Apr 28 23:32:50 2014 -0700
giscanner: Use modern exception handling for Python 3 compatibility
https://bugzilla.gnome.org/show_bug.cgi?id=679438
giscanner/maintransformer.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/giscanner/maintransformer.py b/giscanner/maintransformer.py
index d9811cf..47d7bec 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):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]