Skip to content

Commit 9905549

Browse files
committed
Fix API leak
1 parent 3137973 commit 9905549

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Include/abstract.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -633,10 +633,6 @@ PyAPI_FUNC(PyObject *) PyNumber_InPlaceOr(PyObject *o1, PyObject *o2);
633633
If n is not an int object, it is converted with PyNumber_Index first. */
634634
PyAPI_FUNC(PyObject *) PyNumber_ToBase(PyObject *n, int base);
635635

636-
PyAPI_FUNC(PyObject *) _PyNumber_Op(PyObject *o1, PyObject *o2, unsigned op);
637-
638-
PyAPI_FUNC(PyObject *) _PyNumber_InPlaceOp(PyObject *o1, PyObject *o2, unsigned op);
639-
640636

641637
/* === Sequence protocol ================================================ */
642638

Include/internal/pycore_abstract.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ _PyIndex_Check(PyObject *obj)
1616
return (tp_as_number != NULL && tp_as_number->nb_index != NULL);
1717
}
1818

19+
PyObject *_PyNumber_Op(PyObject *o1, PyObject *o2, unsigned op);
20+
PyObject *_PyNumber_InPlaceOp(PyObject *o1, PyObject *o2, unsigned op);
21+
1922
#ifdef __cplusplus
2023
}
2124
#endif

0 commit comments

Comments
 (0)