diff options
author | Inada Naoki <songofacandy@gmail.com> | 2021-05-07 06:58:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-07 06:58:29 (GMT) |
commit | 9ad8f109ac037ac088e09dcd2da523322c5caf34 (patch) | |
tree | d125df68405fd1e98f3edf67d9e3c52b679688f5 /Modules/_pickle.c | |
parent | 4ebf4a6bfad4afcbab3baf9c0159c7767e2a64c0 (diff) | |
download | cpython-9ad8f109ac037ac088e09dcd2da523322c5caf34.zip cpython-9ad8f109ac037ac088e09dcd2da523322c5caf34.tar.gz cpython-9ad8f109ac037ac088e09dcd2da523322c5caf34.tar.bz2 |
bpo-44029: Remove Py_UNICODE APIs (GH-25881)
Remove deprecated `Py_UNICODE` APIs: `PyUnicode_Encode`,
`PyUnicode_EncodeUTF7`, `PyUnicode_EncodeUTF8`,
`PyUnicode_EncodeUTF16`, `PyUnicode_EncodeUTF32`,
`PyUnicode_EncodeLatin1`, `PyUnicode_EncodeMBCS`,
`PyUnicode_EncodeDecimal`, `PyUnicode_EncodeRawUnicodeEscape`,
`PyUnicode_EncodeCharmap`, `PyUnicode_EncodeUnicodeEscape`,
`PyUnicode_TransformDecimalToASCII`, `PyUnicode_TranslateCharmap`,
`PyUnicodeEncodeError_Create`, `PyUnicodeTranslateError_Create`.
See :pep:`393` and :pep:`624` for reference.
Diffstat (limited to 'Modules/_pickle.c')
-rw-r--r-- | Modules/_pickle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_pickle.c b/Modules/_pickle.c index 691d4a2..3e74faf 100644 --- a/Modules/_pickle.c +++ b/Modules/_pickle.c @@ -2570,7 +2570,7 @@ save_picklebuffer(PicklerObject *self, PyObject *obj) return 0; } -/* A copy of PyUnicode_EncodeRawUnicodeEscape() that also translates +/* A copy of PyUnicode_AsRawUnicodeEscapeString() that also translates backslash and newline characters to \uXXXX escapes. */ static PyObject * raw_unicode_escape(PyObject *obj) |