diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2012-08-28 20:52:31 -0300 |
---|---|---|
committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2012-08-29 00:33:57 -0300 |
commit | bd77b877d9d715349ca1081257c6d86d6488af2f (patch) | |
tree | 9f1aefe4f930a6793bc9493ff368199421caa7ee /giscanner | |
parent | b821d848a58c40bfe26262352cd66aa6eeac5d4a (diff) | |
download | gobject-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.py | 5 |
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: |