[gobject-introspection] mallardwriter: Remove a silly try/except
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] mallardwriter: Remove a silly try/except
- Date: Wed, 29 Aug 2012 06:16:27 +0000 (UTC)
commit bd77b877d9d715349ca1081257c6d86d6488af2f
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Aug 28 20:52:31 2012 -0300
mallardwriter: Remove a silly try/except
This isn't necessary as far as I can tell
giscanner/mallardwriter.py | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/giscanner/mallardwriter.py b/giscanner/mallardwriter.py
index 876bd87..2884c85 100644
--- a/giscanner/mallardwriter.py
+++ b/giscanner/mallardwriter.py
@@ -131,10 +131,7 @@ class MallardFormatterC(MallardFormatter):
def format_type(self, type_):
if isinstance(type_, ast.Array):
- try:
- return self.format_type(type_.element_type) + '*'
- except:
- return type_.target_fundamental
+ return self.format_type(type_.element_type) + '*'
elif type_.ctype is not None:
return type_.ctype
else:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]