Skip to content

Commit 743de39

Browse files
committed
gh-157710: There is no need to export _PyUnicode_IsModifiable()
_PyUnicodeWriter_CanWrite() doesn't call _PyUnicode_IsModifiable(), but reimplement the function.
1 parent 75ce53d commit 743de39

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎Include/internal/pycore_unicodeobject.h‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ extern "C" {
1717
#define _Py_MAX_UNICODE 0x10ffff
1818

1919

20-
// Export for '_multibytecodec' shared extension. _PyUnicodeWriter_CanWrite()
21-
// calls this function when assertions are enabled.
22-
PyAPI_FUNC(int) _PyUnicode_IsModifiable(PyObject *unicode);
20+
extern int _PyUnicode_IsModifiable(PyObject *unicode);
2321
extern void _PyUnicodeWriter_InitWithBuffer(
2422
_PyUnicodeWriter *writer,
2523
PyObject *buffer);

0 commit comments

Comments
 (0)