diff options
Diffstat (limited to 'plugins/pychrysalide/glibext')
-rw-r--r-- | plugins/pychrysalide/glibext/configuration.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/pychrysalide/glibext/configuration.c b/plugins/pychrysalide/glibext/configuration.c index e74f0a4..0fefc13 100644 --- a/plugins/pychrysalide/glibext/configuration.c +++ b/plugins/pychrysalide/glibext/configuration.c @@ -152,7 +152,7 @@ static PyObject *py_config_param_new(PyTypeObject *type, PyObject *args, PyObjec value = NULL; ret = PyArg_ParseTuple(args, "sI|O", &path, &ptype, &value); - if (!ret) Py_RETURN_NONE; + if (!ret) return NULL; if (value == NULL || value == Py_None) param = g_config_param_new_empty(path, ptype); @@ -834,7 +834,7 @@ static PyObject *py_generic_config_new(PyTypeObject *type, PyObject *args, PyObj GGenConfig *config; /* Version GLib du format */ ret = PyArg_ParseTuple(args, "s", &name); - if (!ret) Py_RETURN_NONE; + if (!ret) return NULL; config = g_generic_config_new(name); @@ -932,7 +932,7 @@ static PyObject *py_generic_config_search(PyObject *self, PyObject *args) config = G_GEN_CONFIG(pygobject_get(self)); ret = PyArg_ParseTuple(args, "s", &path); - if (!ret) Py_RETURN_NONE; + if (!ret) return NULL; param = g_generic_config_search(config, path); @@ -968,7 +968,7 @@ static PyObject *py_generic_config_add(PyObject *self, PyObject *args) config = G_GEN_CONFIG(pygobject_get(self)); ret = PyArg_ParseTuple(args, "O", ¶m); - if (!ret) Py_RETURN_NONE; + if (!ret) return NULL; ret = PyObject_IsInstance(param, (PyObject *)get_python_config_param_type()); if (!ret) Py_RETURN_NONE; @@ -1010,7 +1010,7 @@ static PyObject *py_generic_config_delete(PyObject *self, PyObject *args) config = G_GEN_CONFIG(pygobject_get(self)); ret = PyArg_ParseTuple(args, "s", &path); - if (!ret) Py_RETURN_NONE; + if (!ret) return NULL; g_generic_config_delete_param(config, path); |