Skip to content

Commit 27e3171

Browse files
committed
[PyROOT] Fix typo in recent PyROOT commit
`Metho_` -> `Method_`
1 parent 3c07255 commit 27e3171

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bindings/pyroot/cppyy/CPyCppyy/src/CustomPyTypes.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ static PyObject* im_descr_get(PyObject* meth, PyObject* obj, PyObject* pyclass)
224224
// of a class that's not a base class of pyclass
225225
if (CustomInstanceMethod_GET_SELF(meth)
226226
#if PY_VERSION_HEX < 0x03000000
227-
|| (CustomInstanceMetho_GET_CLASS(meth) &&
228-
!PyObject_IsSubclass(pyclass, CustomInstanceMetho_GET_CLASS(meth)))
227+
|| (CustomInstanceMethod_GET_CLASS(meth) &&
228+
!PyObject_IsSubclass(pyclass, CustomInstanceMethod_GET_CLASS(meth)))
229229
#endif
230230
) {
231231
Py_INCREF(meth);

bindings/pyroot/cppyy/patches/avoiding-python312-assert.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ index ed41b1637c6..88f50d91616 100644
8888
#if PY_VERSION_HEX < 0x03000000
8989
- || (PyMethod_GET_CLASS(meth) &&
9090
- !PyObject_IsSubclass(pyclass, PyMethod_GET_CLASS(meth)))
91-
+ || (CustomInstanceMetho_GET_CLASS(meth) &&
92-
+ !PyObject_IsSubclass(pyclass, CustomInstanceMetho_GET_CLASS(meth)))
91+
+ || (CustomInstanceMethod_GET_CLASS(meth) &&
92+
+ !PyObject_IsSubclass(pyclass, CustomInstanceMethod_GET_CLASS(meth)))
9393
#endif
9494
) {
9595
Py_INCREF(meth);

0 commit comments

Comments
 (0)