summaryrefslogtreecommitdiff
path: root/giscanner
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2012-08-28 20:52:31 -0300
committerJasper St. Pierre <jstpierre@mecheye.net>2012-08-29 00:33:57 -0300
commitbd77b877d9d715349ca1081257c6d86d6488af2f (patch)
tree9f1aefe4f930a6793bc9493ff368199421caa7ee /giscanner
parentb821d848a58c40bfe26262352cd66aa6eeac5d4a (diff)
downloadgobject-introspection-bd77b877d9d715349ca1081257c6d86d6488af2f.tar.gz
mallardwriter: Remove a silly try/except
This isn't necessary as far as I can tell
Diffstat (limited to 'giscanner')
-rw-r--r--giscanner/mallardwriter.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/giscanner/mallardwriter.py b/giscanner/mallardwriter.py
index 876bd872..2884c858 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: