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 /Python | |
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 'Python')
-rw-r--r-- | Python/getargs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/getargs.c b/Python/getargs.c index d2dba49..cf0cc07 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -1027,6 +1027,9 @@ convertsimple(PyObject *arg, const char **p_format, va_list *p_va, int flags, case 'u': /* raw unicode buffer (Py_UNICODE *) */ case 'Z': /* raw unicode buffer or None */ { + // TODO: Raise DeprecationWarning +_Py_COMP_DIAG_PUSH +_Py_COMP_DIAG_IGNORE_DEPR_DECLS Py_UNICODE **p = va_arg(*p_va, Py_UNICODE **); if (*format == '#') { @@ -1066,6 +1069,7 @@ convertsimple(PyObject *arg, const char **p_format, va_list *p_va, int flags, arg, msgbuf, bufsize); } break; +_Py_COMP_DIAG_POP } case 'e': {/* encoded string */ |