Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Swaney <sswaney@centurytel.net>2004-06-07 02:42:51 +0400
committerStephen Swaney <sswaney@centurytel.net>2004-06-07 02:42:51 +0400
commita703837179d40fc5e34ae06619d4610a09f72097 (patch)
treec4e456784f79dd26393e2350155b75c398d0d706 /source/blender/python/api2_2x/Blender.c
parentd97e3e55273c6c381eead86f807514ef1d4a3941 (diff)
Replace deprecated methods from old api:
PythonReturnErrorObject PythonIncRef Fix some compiler warnings about missing initializers in method tables.
Diffstat (limited to 'source/blender/python/api2_2x/Blender.c')
-rw-r--r--source/blender/python/api2_2x/Blender.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/python/api2_2x/Blender.c b/source/blender/python/api2_2x/Blender.c
index 839c8010ce4..5f3a857920e 100644
--- a/source/blender/python/api2_2x/Blender.c
+++ b/source/blender/python/api2_2x/Blender.c
@@ -115,7 +115,7 @@ static struct PyMethodDef Blender_methods[] = {
{"Load", Blender_Load, METH_VARARGS, Blender_Load_doc},
{"ReleaseGlobalDict", &Blender_ReleaseGlobalDict,
METH_VARARGS, Blender_ReleaseGlobalDict_doc},
- {NULL, NULL}
+ {NULL, NULL, 0, NULL}
};
/*****************************************************************************/
@@ -153,10 +153,10 @@ static PyObject *Blender_Set (PyObject *self, PyObject *args)
}
else
{
- return (PythonReturnErrorObject (PyExc_AttributeError,
+ return (EXPP_ReturnPyObjError (PyExc_AttributeError,
"bad request identifier"));
}
- return ( PythonIncRef (Py_None) );
+ return ( EXPP_incr_ret (Py_None) );
}
/*****************************************************************************/
@@ -231,17 +231,17 @@ static PyObject *Blender_Get (PyObject *self, PyObject *args)
requested data is unknown?
else
{
- return (PythonReturnErrorObject (..., "message") );
+ return (EXPP_ReturnPyObjError (..., "message") );
}
*/
}
else
{
- return (PythonReturnErrorObject (PyExc_AttributeError,
+ return (EXPP_ReturnPyObjError (PyExc_AttributeError,
"expected string argument"));
}
- return (PythonReturnErrorObject (PyExc_AttributeError,
+ return (EXPP_ReturnPyObjError (PyExc_AttributeError,
"bad request identifier"));
}