From ce1911fe5ae1878bdbd475a92ac4aec7b75c1e42 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Thu, 10 Jul 2014 15:04:21 +0200 Subject: [PATCH] Allow None for string parameters in the Python wrapper (value passed as NULL to the C code). --- tools/python/apixml2python/linphone.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/apixml2python/linphone.py b/tools/python/apixml2python/linphone.py index 81d5436b0..35d8f215d 100644 --- a/tools/python/apixml2python/linphone.py +++ b/tools/python/apixml2python/linphone.py @@ -139,7 +139,7 @@ class MethodDefinition: basic_type, splitted_type = self.__get_basic_type_from_c_type(ctype) if basic_type == 'char': if '*' in splitted_type: - return 's' + return 'z' elif 'unsigned' in splitted_type: return 'b' elif basic_type == 'int':