diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2020-07-05 15:53:45 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-05 15:53:45 (GMT) |
commit | b3dd5cd4a36877c473417fd7b3358843dcf8e647 (patch) | |
tree | 92dc0f758aaadbef1b6f1dda0ab639229ef887cb /Objects | |
parent | 7fed75597fac11f9a6c769e2b6c6548fe0e4049d (diff) | |
download | cpython-b3dd5cd4a36877c473417fd7b3358843dcf8e647.zip cpython-b3dd5cd4a36877c473417fd7b3358843dcf8e647.tar.gz cpython-b3dd5cd4a36877c473417fd7b3358843dcf8e647.tar.bz2 |
bpo-36346: Undeprecate private function _PyUnicode_AsUnicode(). (GH-21336)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodeobject.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index ca68c57..809ed85 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -3310,14 +3310,11 @@ _PyUnicode_WideCharString_Converter(PyObject *obj, void *ptr) } if (PyUnicode_Check(obj)) { #if USE_UNICODE_WCHAR_CACHE -_Py_COMP_DIAG_PUSH -_Py_COMP_DIAG_IGNORE_DEPR_DECLS *p = (wchar_t *)_PyUnicode_AsUnicode(obj); if (*p == NULL) { return 0; } return 1; -_Py_COMP_DIAG_POP #else /* USE_UNICODE_WCHAR_CACHE */ *p = PyUnicode_AsWideCharString(obj, NULL); if (*p == NULL) { @@ -3349,14 +3346,11 @@ _PyUnicode_WideCharString_Opt_Converter(PyObject *obj, void *ptr) } if (PyUnicode_Check(obj)) { #if USE_UNICODE_WCHAR_CACHE -_Py_COMP_DIAG_PUSH -_Py_COMP_DIAG_IGNORE_DEPR_DECLS *p = (wchar_t *)_PyUnicode_AsUnicode(obj); if (*p == NULL) { return 0; } return 1; -_Py_COMP_DIAG_POP #else /* USE_UNICODE_WCHAR_CACHE */ *p = PyUnicode_AsWideCharString(obj, NULL); if (*p == NULL) { |