There was an error while loading. Please reload this page.
1 parent 0b1df72 commit 9481cd6Copy full SHA for 9481cd6
1 file changed
Include/cpython/unicodeobject.h
@@ -567,7 +567,7 @@ _Py_DEPRECATED_EXTERNALLY(3.14) PyAPI_FUNC(int) _PyUnicodeWriter_PrepareInternal
567
// with the specified maximum character.
568
//
569
// Return 0 on success. Set an exception and return -1 on error.
570
-static inline int
+_Py_DEPRECATED_EXTERNALLY(3.14) static inline int
571
_PyUnicodeWriter_Prepare(_PyUnicodeWriter *writer,
572
Py_ssize_t length, Py_UCS4 maxchar)
573
{
@@ -578,7 +578,10 @@ _PyUnicodeWriter_Prepare(_PyUnicodeWriter *writer,
578
if (length == 0) {
579
return 0;
580
}
581
+_Py_COMP_DIAG_PUSH
582
+_Py_COMP_DIAG_IGNORE_DEPR_DECLS
583
return _PyUnicodeWriter_PrepareInternal(writer, length, maxchar);
584
+_Py_COMP_DIAG_POP
585
586
587
/* Prepare the buffer to have at least the kind KIND.
0 commit comments