summaryrefslogtreecommitdiffstats
path: root/Python/fileutils.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2025-01-22 11:04:19 (GMT)
committerGitHub <noreply@github.com>2025-01-22 11:04:19 (GMT)
commit9012fa741d55419dc77c5c191794eb93e71ae9a4 (patch)
treed8b2560baa9ab8b9ac3719afbeae87076a7cdbc7 /Python/fileutils.c
parent470a0a68ebbbb4254f1a3e8e22cce0c3a0827055 (diff)
downloadcpython-9012fa741d55419dc77c5c191794eb93e71ae9a4.zip
cpython-9012fa741d55419dc77c5c191794eb93e71ae9a4.tar.gz
cpython-9012fa741d55419dc77c5c191794eb93e71ae9a4.tar.bz2
gh-128863: Deprecate private C API functions (#128864)
Deprecate private C API functions: * _PyBytes_Join() * _PyDict_GetItemStringWithError() * _PyDict_Pop() * _PyThreadState_UncheckedGet() * _PyUnicode_AsString() * _Py_HashPointer() * _Py_fopen_obj() Replace _Py_HashPointer() with Py_HashPointer(). Remove references to deprecated functions.
Diffstat (limited to 'Python/fileutils.c')
-rw-r--r--Python/fileutils.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/Python/fileutils.c b/Python/fileutils.c
index 72804c3..68d24bc 100644
--- a/Python/fileutils.c
+++ b/Python/fileutils.c
@@ -1842,14 +1842,6 @@ Py_fopen(PyObject *path, const char *mode)
}
-// Deprecated alias to Py_fopen() kept for backward compatibility
-FILE*
-_Py_fopen_obj(PyObject *path, const char *mode)
-{
- return Py_fopen(path, mode);
-}
-
-
// Call fclose().
//
// On Windows, files opened by Py_fopen() in the Python DLL must be closed by