diff options
author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-02-22 13:30:35 +0000 |
---|---|---|
committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-02-22 13:30:35 +0000 |
commit | 009b39dbaf0bf7c91d24dd89f62f912e1d35e49b (patch) | |
tree | 9d43bb180ef13418734ab41e5c09ef7afcad9be4 /bindings/utils.py | |
parent | 1ee8f53663dc8eb96c2671412c27dddc96a7a831 (diff) | |
download | lasso-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.py | 2 |
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) |