Fix for Bug 1039

Changed doc to match the parameters for Ipo New() method.
Corrected error message for expected argument types in New() method.
This commit is contained in:
Stephen Swaney
2004-03-05 06:25:49 +00:00
parent db9f9215cf
commit 83804a7173
2 changed files with 6 additions and 5 deletions

View File

@@ -46,7 +46,7 @@ static PyObject *M_Ipo_New(PyObject *self, PyObject *args)
Ipo *blipo;
if (!PyArg_ParseTuple(args, "ss", &code,&name))
return (EXPP_ReturnPyObjError (PyExc_TypeError,"expected string int arguments"));
return (EXPP_ReturnPyObjError (PyExc_TypeError,"expected string string arguments"));
if (!strcmp(code,"Object"))idcode = ID_OB;
if (!strcmp(code,"Camera"))idcode = ID_CA;