summaryrefslogtreecommitdiffstats
path: root/Objects/exceptions.c
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2021-05-07 06:58:29 (GMT)
committerGitHub <noreply@github.com>2021-05-07 06:58:29 (GMT)
commit9ad8f109ac037ac088e09dcd2da523322c5caf34 (patch)
treed125df68405fd1e98f3edf67d9e3c52b679688f5 /Objects/exceptions.c
parent4ebf4a6bfad4afcbab3baf9c0159c7767e2a64c0 (diff)
downloadcpython-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 'Objects/exceptions.c')
-rw-r--r--Objects/exceptions.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/Objects/exceptions.c b/Objects/exceptions.c
index 95e6f21..20fcd4e 100644
--- a/Objects/exceptions.c
+++ b/Objects/exceptions.c
@@ -2129,15 +2129,6 @@ static PyTypeObject _PyExc_UnicodeEncodeError = {
};
PyObject *PyExc_UnicodeEncodeError = (PyObject *)&_PyExc_UnicodeEncodeError;
-PyObject *
-PyUnicodeEncodeError_Create(
- const char *encoding, const Py_UNICODE *object, Py_ssize_t length,
- Py_ssize_t start, Py_ssize_t end, const char *reason)
-{
- return PyObject_CallFunction(PyExc_UnicodeEncodeError, "su#nns",
- encoding, object, length, start, end, reason);
-}
-
/*
* UnicodeDecodeError extends UnicodeError
@@ -2342,16 +2333,6 @@ static PyTypeObject _PyExc_UnicodeTranslateError = {
};
PyObject *PyExc_UnicodeTranslateError = (PyObject *)&_PyExc_UnicodeTranslateError;
-/* Deprecated. */
-PyObject *
-PyUnicodeTranslateError_Create(
- const Py_UNICODE *object, Py_ssize_t length,
- Py_ssize_t start, Py_ssize_t end, const char *reason)
-{
- return PyObject_CallFunction(PyExc_UnicodeTranslateError, "u#nns",
- object, length, start, end, reason);
-}
-
PyObject *
_PyUnicodeTranslateError_Create(
PyObject *object,