From c9f353956c19abf184496978927c4af5209ec97f Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 9 Jan 2011 14:53:18 +0000 Subject: use PySequence_Size() rather then PySequence_Length(), this is only kept in python for backwards compatibility. --- intern/audaspace/Python/AUD_PyAPI.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'intern') diff --git a/intern/audaspace/Python/AUD_PyAPI.cpp b/intern/audaspace/Python/AUD_PyAPI.cpp index d3f42419494..9620f26cc33 100644 --- a/intern/audaspace/Python/AUD_PyAPI.cpp +++ b/intern/audaspace/Python/AUD_PyAPI.cpp @@ -851,7 +851,7 @@ Factory_filter(Factory* self, PyObject* args) return NULL; } - if(!PySequence_Length(py_b) || (py_a != NULL && !PySequence_Length(py_a))) + if(!PySequence_Size(py_b) || (py_a != NULL && !PySequence_Size(py_a))) { PyErr_SetString(PyExc_ValueError, "The sequence has to contain at least one value!"); return NULL; @@ -862,7 +862,7 @@ Factory_filter(Factory* self, PyObject* args) float value; int result; - for(int i = 0; i < PySequence_Length(py_b); i++) + for(int i = 0; i < PySequence_Size(py_b); i++) { py_value = PySequence_GetItem(py_b, i); result = PyArg_Parse(py_value, "f:filter", &value); @@ -876,7 +876,7 @@ Factory_filter(Factory* self, PyObject* args) if(py_a) { - for(int i = 0; i < PySequence_Length(py_a); i++) + for(int i = 0; i < PySequence_Size(py_a); i++) { py_value = PySequence_GetItem(py_a, i); result = PyArg_Parse(py_value, "f:filter", &value); -- cgit v1.2.3