diff options
author | Inada Naoki <songofacandy@gmail.com> | 2021-05-13 20:45:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-13 20:45:26 (GMT) |
commit | ae3c66acb89a6104fcd0eea760f80a0287327cc4 (patch) | |
tree | 835a76dda08fc4f3e36d04fcae21dc560a2d1242 /Python | |
parent | e0c614e5fd017ca43cab55a9f8490133750c704f (diff) | |
download | cpython-ae3c66acb89a6104fcd0eea760f80a0287327cc4.zip cpython-ae3c66acb89a6104fcd0eea760f80a0287327cc4.tar.gz cpython-ae3c66acb89a6104fcd0eea760f80a0287327cc4.tar.bz2 |
bpo-44094: Remove deprecated PyErr_ APIs. (GH-26011)
These APIs are deprecated since Python 3.3. They are not documented too.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/errors.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/Python/errors.c b/Python/errors.c index f743d30..118118f 100644 --- a/Python/errors.c +++ b/Python/errors.c @@ -776,17 +776,6 @@ PyErr_SetFromErrnoWithFilename(PyObject *exc, const char *filename) return result; } -#ifdef MS_WINDOWS -PyObject * -PyErr_SetFromErrnoWithUnicodeFilename(PyObject *exc, const Py_UNICODE *filename) -{ - PyObject *name = filename ? PyUnicode_FromWideChar(filename, -1) : NULL; - PyObject *result = PyErr_SetFromErrnoWithFilenameObjects(exc, name, NULL); - Py_XDECREF(name); - return result; -} -#endif /* MS_WINDOWS */ - PyObject * PyErr_SetFromErrno(PyObject *exc) { @@ -887,20 +876,6 @@ PyObject *PyErr_SetExcFromWindowsErrWithFilename( return ret; } -PyObject *PyErr_SetExcFromWindowsErrWithUnicodeFilename( - PyObject *exc, - int ierr, - const Py_UNICODE *filename) -{ - PyObject *name = filename ? PyUnicode_FromWideChar(filename, -1) : NULL; - PyObject *ret = PyErr_SetExcFromWindowsErrWithFilenameObjects(exc, - ierr, - name, - NULL); - Py_XDECREF(name); - return ret; -} - PyObject *PyErr_SetExcFromWindowsErr(PyObject *exc, int ierr) { return PyErr_SetExcFromWindowsErrWithFilename(exc, ierr, NULL); @@ -924,17 +899,6 @@ PyObject *PyErr_SetFromWindowsErrWithFilename( return result; } -PyObject *PyErr_SetFromWindowsErrWithUnicodeFilename( - int ierr, - const Py_UNICODE *filename) -{ - PyObject *name = filename ? PyUnicode_FromWideChar(filename, -1) : NULL; - PyObject *result = PyErr_SetExcFromWindowsErrWithFilenameObjects( - PyExc_OSError, - ierr, name, NULL); - Py_XDECREF(name); - return result; -} #endif /* MS_WINDOWS */ PyObject * |