diff options
Diffstat (limited to 'Objects/exceptions.c')
-rw-r--r-- | Objects/exceptions.c | 19 |
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, |