@@ -5,7 +5,7 @@ static PyObject* wxPyGetMethod(PyObject* py, char* name)
55 if (!PyObject_HasAttrString (py, name))
66 return NULL ;
77 PyObject* o = PyObject_GetAttrString (py, name);
8- if (!PyMethod_Check (o) && !PyCFunction_Check (o)) {
8+ if (!wxPyMethod_Check (o) && !PyCFunction_Check (o)) {
99 Py_DECREF (o);
1010 return NULL ;
1111 }
@@ -90,7 +90,7 @@ class wxPyOutputStream : public wxOutputStream
9090
9191 wxPyThreadBlocker blocker;
9292 PyObject* arglist = PyTuple_New (1 );
93- PyTuple_SET_ITEM (arglist, 0 , PyBytes_FromStringAndSize ((char *)buffer, bufsize));
93+ PyTuple_SetItem (arglist, 0 , PyBytes_FromStringAndSize ((char *)buffer, bufsize));
9494
9595 PyObject* result = PyEval_CallObject (m_write, arglist);
9696 Py_DECREF (arglist);
@@ -109,11 +109,11 @@ class wxPyOutputStream : public wxOutputStream
109109
110110 if (sizeof (wxFileOffset) > sizeof (long ))
111111 // wxFileOffset is a 64-bit value...
112- PyTuple_SET_ITEM (arglist, 0 , PyLong_FromLongLong (off));
112+ PyTuple_SetItem (arglist, 0 , PyLong_FromLongLong (off));
113113 else
114- PyTuple_SET_ITEM (arglist, 0 , wxPyInt_FromLong (off));
114+ PyTuple_SetItem (arglist, 0 , wxPyInt_FromLong (off));
115115
116- PyTuple_SET_ITEM (arglist, 1 , wxPyInt_FromLong (mode));
116+ PyTuple_SetItem (arglist, 1 , wxPyInt_FromLong (mode));
117117
118118
119119 PyObject* result = PyEval_CallObject (m_seek, arglist);
0 commit comments