Skip to content

Commit 27db060

Browse files
committed
pythongh-121489: Export private _PyBytes_Join() again
1 parent 24cf867 commit 27db060

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Include/cpython/bytesobject.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,7 @@ static inline Py_ssize_t PyBytes_GET_SIZE(PyObject *op) {
3131
return Py_SIZE(self);
3232
}
3333
#define PyBytes_GET_SIZE(self) PyBytes_GET_SIZE(_PyObject_CAST(self))
34+
35+
/* _PyBytes_Join(sep, x) is like sep.join(x). sep must be PyBytesObject*,
36+
x must be an iterable object. */
37+
PyAPI_FUNC(PyObject*) _PyBytes_Join(PyObject *sep, PyObject *x);

Include/internal/pycore_bytesobject.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ extern PyObject* _PyBytes_FromHex(
2323
PyAPI_FUNC(PyObject*) _PyBytes_DecodeEscape(const char *, Py_ssize_t,
2424
const char *, const char **);
2525

26-
/* _PyBytes_Join(sep, x) is like sep.join(x). sep must be PyBytesObject*,
27-
x must be an iterable object. */
28-
extern PyObject* _PyBytes_Join(PyObject *sep, PyObject *x);
29-
3026

3127
// Substring Search.
3228
//
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Export private _PyBytes_Join() again.

Modules/_io/bufferedio.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
*/
99

1010
#include "Python.h"
11-
#include "pycore_bytesobject.h" // _PyBytes_Join()
1211
#include "pycore_call.h" // _PyObject_CallNoArgs()
1312
#include "pycore_object.h" // _PyObject_GC_UNTRACK()
1413
#include "pycore_pyerrors.h" // _Py_FatalErrorFormat()

0 commit comments

Comments
 (0)