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/constant.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/constant.c')
-rw-r--r--source/blender/python/api2_2x/constant.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/python/api2_2x/constant.c b/source/blender/python/api2_2x/constant.c
index 208d17777db..ab7956efb47 100644
--- a/source/blender/python/api2_2x/constant.c
+++ b/source/blender/python/api2_2x/constant.c
@@ -102,11 +102,11 @@ static PyObject *new_const(void)
constant = (BPy_constant *)PyObject_NEW(BPy_constant, &constant_Type);
if (constant == NULL)
- return (PythonReturnErrorObject (PyExc_MemoryError,
+ return (EXPP_ReturnPyObjError (PyExc_MemoryError,
"couldn't create constant object"));
if ((constant->dict = PyDict_New()) == NULL)
- return (PythonReturnErrorObject (PyExc_MemoryError,
+ return (EXPP_ReturnPyObjError (PyExc_MemoryError,
"couldn't create constant object's dictionary"));
return (PyObject *)constant;
@@ -152,10 +152,10 @@ static PyObject *constant_getAttr (BPy_constant *self, char *name)
return v;
}
- return (PythonReturnErrorObject (PyExc_AttributeError,
+ return (EXPP_ReturnPyObjError (PyExc_AttributeError,
"attribute not found"));
}
- return (PythonReturnErrorObject (PyExc_RuntimeError,
+ return (EXPP_ReturnPyObjError (PyExc_RuntimeError,
"constant object lacks a dictionary"));
}