summaryrefslogtreecommitdiffstats
path: root/bindings/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/utils.py')
-rw-r--r--bindings/utils.py2
1 files changed, 2 insertions, 0 deletions
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)