Commit a2dc6f0b authored by Jeremy Hylton's avatar Jeremy Hylton

Ooops. Call method with C API function that exists in Python 2.1.

parent 81d666f2
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
static char cPersistence_doc_string[] = static char cPersistence_doc_string[] =
"Defines Persistent mixin class for persistent objects.\n" "Defines Persistent mixin class for persistent objects.\n"
"\n" "\n"
"$Id: cPersistence.c,v 1.60 2002/06/14 15:29:30 jeremy Exp $\n"; "$Id: cPersistence.c,v 1.61 2002/06/14 15:34:30 jeremy Exp $\n";
#include "cPersistence.h" #include "cPersistence.h"
...@@ -232,7 +232,7 @@ changed(cPersistentObject *self) ...@@ -232,7 +232,7 @@ changed(cPersistentObject *self)
return -1; return -1;
} }
PyTuple_SET_ITEM(arg, 0, (PyObject *)self); PyTuple_SET_ITEM(arg, 0, (PyObject *)self);
result = PyObject_Call(meth, arg, NULL); result = PyEval_CallObject(meth, arg);
PyTuple_SET_ITEM(arg, 0, NULL); PyTuple_SET_ITEM(arg, 0, NULL);
Py_DECREF(arg); Py_DECREF(arg);
Py_DECREF(meth); Py_DECREF(meth);
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
static char cPersistence_doc_string[] = static char cPersistence_doc_string[] =
"Defines Persistent mixin class for persistent objects.\n" "Defines Persistent mixin class for persistent objects.\n"
"\n" "\n"
"$Id: cPersistence.c,v 1.60 2002/06/14 15:29:30 jeremy Exp $\n"; "$Id: cPersistence.c,v 1.61 2002/06/14 15:34:30 jeremy Exp $\n";
#include "cPersistence.h" #include "cPersistence.h"
...@@ -232,7 +232,7 @@ changed(cPersistentObject *self) ...@@ -232,7 +232,7 @@ changed(cPersistentObject *self)
return -1; return -1;
} }
PyTuple_SET_ITEM(arg, 0, (PyObject *)self); PyTuple_SET_ITEM(arg, 0, (PyObject *)self);
result = PyObject_Call(meth, arg, NULL); result = PyEval_CallObject(meth, arg);
PyTuple_SET_ITEM(arg, 0, NULL); PyTuple_SET_ITEM(arg, 0, NULL);
Py_DECREF(arg); Py_DECREF(arg);
Py_DECREF(meth); Py_DECREF(meth);
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
static char cPersistence_doc_string[] = static char cPersistence_doc_string[] =
"Defines Persistent mixin class for persistent objects.\n" "Defines Persistent mixin class for persistent objects.\n"
"\n" "\n"
"$Id: cPersistence.c,v 1.60 2002/06/14 15:29:30 jeremy Exp $\n"; "$Id: cPersistence.c,v 1.61 2002/06/14 15:34:30 jeremy Exp $\n";
#include "cPersistence.h" #include "cPersistence.h"
...@@ -232,7 +232,7 @@ changed(cPersistentObject *self) ...@@ -232,7 +232,7 @@ changed(cPersistentObject *self)
return -1; return -1;
} }
PyTuple_SET_ITEM(arg, 0, (PyObject *)self); PyTuple_SET_ITEM(arg, 0, (PyObject *)self);
result = PyObject_Call(meth, arg, NULL); result = PyEval_CallObject(meth, arg);
PyTuple_SET_ITEM(arg, 0, NULL); PyTuple_SET_ITEM(arg, 0, NULL);
Py_DECREF(arg); Py_DECREF(arg);
Py_DECREF(meth); Py_DECREF(meth);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment