summaryrefslogtreecommitdiffstats
path: root/bindings/utils.py
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-02-22 13:30:35 +0000
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-02-22 13:30:35 +0000
commit009b39dbaf0bf7c91d24dd89f62f912e1d35e49b (patch)
tree9d43bb180ef13418734ab41e5c09ef7afcad9be4 /bindings/utils.py
parent1ee8f53663dc8eb96c2671412c27dddc96a7a831 (diff)
downloadlasso-009b39dbaf0bf7c91d24dd89f62f912e1d35e49b.tar.gz
lasso-009b39dbaf0bf7c91d24dd89f62f912e1d35e49b.tar.xz
lasso-009b39dbaf0bf7c91d24dd89f62f912e1d35e49b.zip
Bindings: in utils.py, make clean_type handle None value
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)