Rename PyUnicode_strdup() to PyUnicode_AsUnicodeCopy()
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h
index b6a7fca..0de0d66 100644
--- a/Include/unicodeobject.h
+++ b/Include/unicodeobject.h
@@ -1607,7 +1607,7 @@
and raise a MemoryError exception on memory allocation failure, otherwise
return a new allocated buffer (use PyMem_Free() to free the buffer). */
-PyAPI_FUNC(Py_UNICODE*) PyUnicode_strdup(
+PyAPI_FUNC(Py_UNICODE*) PyUnicode_AsUnicodeCopy(
PyObject *unicode
);
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 80e2e63..9cdf90d 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -10015,7 +10015,7 @@
}
Py_UNICODE*
-PyUnicode_strdup(PyObject *object)
+PyUnicode_AsUnicodeCopy(PyObject *object)
{
PyUnicodeObject *unicode = (PyUnicodeObject *)object;
Py_UNICODE *copy;