summaryrefslogtreecommitdiffstats
path: root/Tools/clinic
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2020-07-05 15:53:45 (GMT)
committerGitHub <noreply@github.com>2020-07-05 15:53:45 (GMT)
commitb3dd5cd4a36877c473417fd7b3358843dcf8e647 (patch)
tree92dc0f758aaadbef1b6f1dda0ab639229ef887cb /Tools/clinic
parent7fed75597fac11f9a6c769e2b6c6548fe0e4049d (diff)
downloadcpython-b3dd5cd4a36877c473417fd7b3358843dcf8e647.zip
cpython-b3dd5cd4a36877c473417fd7b3358843dcf8e647.tar.gz
cpython-b3dd5cd4a36877c473417fd7b3358843dcf8e647.tar.bz2
bpo-36346: Undeprecate private function _PyUnicode_AsUnicode(). (GH-21336)
Diffstat (limited to 'Tools/clinic')
-rwxr-xr-xTools/clinic/clinic.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py
index 3a9f4c2..92334d9 100755
--- a/Tools/clinic/clinic.py
+++ b/Tools/clinic/clinic.py
@@ -3414,10 +3414,7 @@ PyMem_Free((void *){name});
goto exit;
}}}}
#if USE_UNICODE_WCHAR_CACHE
- _Py_COMP_DIAG_PUSH
- _Py_COMP_DIAG_IGNORE_DEPR_DECLS
{paramname} = _PyUnicode_AsUnicode({argname});
- _Py_COMP_DIAG_POP
#else /* USE_UNICODE_WCHAR_CACHE */
{paramname} = PyUnicode_AsWideCharString({argname}, NULL);
#endif /* USE_UNICODE_WCHAR_CACHE */
@@ -3432,10 +3429,7 @@ PyMem_Free((void *){name});
}}}}
else if (PyUnicode_Check({argname})) {{{{
#if USE_UNICODE_WCHAR_CACHE
- _Py_COMP_DIAG_PUSH
- _Py_COMP_DIAG_IGNORE_DEPR_DECLS
{paramname} = _PyUnicode_AsUnicode({argname});
- _Py_COMP_DIAG_POP
#else /* USE_UNICODE_WCHAR_CACHE */
{paramname} = PyUnicode_AsWideCharString({argname}, NULL);
#endif /* USE_UNICODE_WCHAR_CACHE */