diff options
author | Victor Stinner <vstinner@python.org> | 2023-07-22 13:15:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-22 13:15:05 (GMT) |
commit | 463b56da1265a17e4207f651d6d5835a8d6de2dd (patch) | |
tree | 6fde62b4d3ed16217a665f06407c2dcd1024ac3b /Include/cpython | |
parent | 76e20c361c8d6bc20d939d436a1c3d4077a58186 (diff) | |
download | cpython-463b56da1265a17e4207f651d6d5835a8d6de2dd.zip cpython-463b56da1265a17e4207f651d6d5835a8d6de2dd.tar.gz cpython-463b56da1265a17e4207f651d6d5835a8d6de2dd.tar.bz2 |
gh-106320: Remove private _PyUnicode_AsString() alias (#107021)
Remove private _PyUnicode_AsString() alias to PyUnicode_AsUTF8(). It
was kept for backward compatibility with Python 3.0 - 3.2.
The PyUnicode_AsUTF8() is available since Python
3.3. The PyUnicode_AsUTF8String() function can be used to keep
compatibility with Python 3.2 and older.
Diffstat (limited to 'Include/cpython')
-rw-r--r-- | Include/cpython/unicodeobject.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Include/cpython/unicodeobject.h b/Include/cpython/unicodeobject.h index e75b5e1..51eb998 100644 --- a/Include/cpython/unicodeobject.h +++ b/Include/cpython/unicodeobject.h @@ -446,17 +446,12 @@ PyAPI_FUNC(PyObject*) PyUnicode_FromKindAndData( Like PyUnicode_AsUTF8AndSize(), this also caches the UTF-8 representation in the unicodeobject. - _PyUnicode_AsString is a #define for PyUnicode_AsUTF8 to - support the previous internal function with the same behaviour. - Use of this API is DEPRECATED since no size information can be extracted from the returned data. */ PyAPI_FUNC(const char *) PyUnicode_AsUTF8(PyObject *unicode); -#define _PyUnicode_AsString PyUnicode_AsUTF8 - /* === Characters Type APIs =============================================== */ /* These should not be used directly. Use the Py_UNICODE_IS* and |