diff options
author | Inada Naoki <songofacandy@gmail.com> | 2020-06-17 11:09:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-17 11:09:44 (GMT) |
commit | 2c4928d37edc5e4aeec3c0b79fa3460b1ec9b60d (patch) | |
tree | 31be169cf2554f600034c827870ce2ce384470cd /Modules/_testcapimodule.c | |
parent | 818f5b597ae93411cc44e404544247d436026a00 (diff) | |
download | cpython-2c4928d37edc5e4aeec3c0b79fa3460b1ec9b60d.zip cpython-2c4928d37edc5e4aeec3c0b79fa3460b1ec9b60d.tar.gz cpython-2c4928d37edc5e4aeec3c0b79fa3460b1ec9b60d.tar.bz2 |
bpo-36346: Add Py_DEPRECATED to deprecated unicode APIs (GH-20878)
Co-authored-by: Kyle Stanley <aeros167@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Modules/_testcapimodule.c')
-rw-r--r-- | Modules/_testcapimodule.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index e0457ae..5302641 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -1668,6 +1668,10 @@ exit: static volatile int x; +/* Ignore use of deprecated APIs */ +_Py_COMP_DIAG_PUSH +_Py_COMP_DIAG_IGNORE_DEPR_DECLS + /* Test the u and u# codes for PyArg_ParseTuple. May leak memory in case of an error. */ @@ -1844,6 +1848,7 @@ test_widechar(PyObject *self, PyObject *Py_UNUSED(ignored)) Py_RETURN_NONE; } +_Py_COMP_DIAG_POP static PyObject * unicode_aswidechar(PyObject *self, PyObject *args) @@ -2064,6 +2069,10 @@ unicode_transformdecimaltoascii(PyObject *self, PyObject *args) return PyUnicode_TransformDecimalToASCII(unicode, length); } +/* Ignore use of deprecated APIs */ +_Py_COMP_DIAG_PUSH +_Py_COMP_DIAG_IGNORE_DEPR_DECLS + static PyObject * unicode_legacy_string(PyObject *self, PyObject *args) { @@ -2086,6 +2095,7 @@ unicode_legacy_string(PyObject *self, PyObject *args) return u; } +_Py_COMP_DIAG_POP static PyObject * getargs_w_star(PyObject *self, PyObject *args) |