summaryrefslogtreecommitdiffstats
path: root/Modules/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 /Modules/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 'Modules/clinic')
-rw-r--r--Modules/clinic/posixmodule.c.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/Modules/clinic/posixmodule.c.h b/Modules/clinic/posixmodule.c.h
index 6533edf..c15def0 100644
--- a/Modules/clinic/posixmodule.c.h
+++ b/Modules/clinic/posixmodule.c.h
@@ -1688,10 +1688,7 @@ os_system(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *k
goto exit;
}
#if USE_UNICODE_WCHAR_CACHE
- _Py_COMP_DIAG_PUSH
- _Py_COMP_DIAG_IGNORE_DEPR_DECLS
command = _PyUnicode_AsUnicode(args[0]);
- _Py_COMP_DIAG_POP
#else /* USE_UNICODE_WCHAR_CACHE */
command = PyUnicode_AsWideCharString(args[0], NULL);
#endif /* USE_UNICODE_WCHAR_CACHE */
@@ -7040,10 +7037,7 @@ os_startfile(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject
goto exit;
}
#if USE_UNICODE_WCHAR_CACHE
- _Py_COMP_DIAG_PUSH
- _Py_COMP_DIAG_IGNORE_DEPR_DECLS
operation = _PyUnicode_AsUnicode(args[1]);
- _Py_COMP_DIAG_POP
#else /* USE_UNICODE_WCHAR_CACHE */
operation = PyUnicode_AsWideCharString(args[1], NULL);
#endif /* USE_UNICODE_WCHAR_CACHE */
@@ -8925,4 +8919,4 @@ exit:
#ifndef OS_WAITSTATUS_TO_EXITCODE_METHODDEF
#define OS_WAITSTATUS_TO_EXITCODE_METHODDEF
#endif /* !defined(OS_WAITSTATUS_TO_EXITCODE_METHODDEF) */
-/*[clinic end generated code: output=ba3d4b35fda2c208 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=a0fbdea47249ee0c input=a9049054013a1b77]*/