summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2020-03-14 06:59:27 (GMT)
committerGitHub <noreply@github.com>2020-03-14 06:59:27 (GMT)
commit3a8c56295d6272ad2177d2de8af4c3f824f3ef92 (patch)
tree9f4d7a615bd78987c6d36ee3ab7e084ee8ee1bc1 /Include
parent7a5cbc72988aee668816be9d1ef44c0cb4081ff6 (diff)
downloadcpython-3a8c56295d6272ad2177d2de8af4c3f824f3ef92.zip
cpython-3a8c56295d6272ad2177d2de8af4c3f824f3ef92.tar.gz
cpython-3a8c56295d6272ad2177d2de8af4c3f824f3ef92.tar.bz2
Revert "bpo-39087: Add _PyUnicode_GetUTF8Buffer()" (GH-18985)
* Revert "bpo-39087: Add _PyUnicode_GetUTF8Buffer() (GH-17659)" This reverts commit c7ad974d341d3edb6b9d2a2dcae4d3d4794ada6b. * Update unicodeobject.h
Diffstat (limited to 'Include')
-rw-r--r--Include/cpython/unicodeobject.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/Include/cpython/unicodeobject.h b/Include/cpython/unicodeobject.h
index be91d2d..0df6479 100644
--- a/Include/cpython/unicodeobject.h
+++ b/Include/cpython/unicodeobject.h
@@ -734,19 +734,6 @@ PyAPI_FUNC(void*) _PyUnicode_AsKind(PyObject *s, unsigned int kind);
/* --- Manage the default encoding ---------------------------------------- */
-/* Get a buffer to the UTF-8 encoding of the Unicode object unicode.
- Returns -1 on error.
-
- Successful calls must be paired to
- calls to PyBuffer_Release.
-*/
-
-PyAPI_FUNC(int) _PyUnicode_GetUTF8Buffer(
- PyObject *unicode, /* Unicode object */
- const char *errors, /* error handling */
- Py_buffer *view /* (out) buffer to the UTF-8 encoding */
- );
-
/* Returns a pointer to the default encoding (UTF-8) of the
Unicode object unicode and the size of the encoded representation
in bytes stored in *size.