From 009b39dbaf0bf7c91d24dd89f62f912e1d35e49b Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Mon, 22 Feb 2010 13:30:35 +0000 Subject: Bindings: in utils.py, make clean_type handle None value --- bindings/utils.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bindings/utils.py') diff --git a/bindings/utils.py b/bindings/utils.py index 7cbfdc89..8491cc51 100644 --- a/bindings/utils.py +++ b/bindings/utils.py @@ -30,6 +30,8 @@ def convert_type_from_gobject_annotation(type): return _mapping_convert_type_from_gobject_annotation.get(type, type) def clean_type(type): + if not type: + return type type = type.strip() type = re.sub('\s+', ' ', type) return re.sub('\s*\*\s*', '*', type) -- cgit