mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 03:20:08 +01:00
Replace deprecated PyEval_CallObject with PyObject_CallObject
This commit is contained in:
@@ -50,7 +50,7 @@ void wxPyCallback::EventThunker(wxEvent& event) {
|
||||
// Call the event handler, passing the event object
|
||||
tuple = PyTuple_New(1);
|
||||
PyTuple_SET_ITEM(tuple, 0, arg); // steals ref to arg
|
||||
result = PyEval_CallObject(func, tuple);
|
||||
result = PyObject_CallObject(func, tuple);
|
||||
if ( result ) {
|
||||
Py_DECREF(result); // result is ignored, but we still need to decref it
|
||||
PyErr_Clear(); // Just in case...
|
||||
|
||||
Reference in New Issue
Block a user