summaryrefslogtreecommitdiffstats
path: root/Modules/_io
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-06-30 09:34:01 (GMT)
committerGitHub <noreply@github.com>2023-06-30 09:34:01 (GMT)
commit0b51463862798d3124f542a076e02ea3759551a4 (patch)
tree46bf3938ad08e36501b744444dadcbfacf78540f /Modules/_io
parente17420db5d0452a9c56c8cb324d37fc2c04309c0 (diff)
downloadcpython-0b51463862798d3124f542a076e02ea3759551a4.zip
cpython-0b51463862798d3124f542a076e02ea3759551a4.tar.gz
cpython-0b51463862798d3124f542a076e02ea3759551a4.tar.bz2
Remove private _PyCodec_Lookup() function (#106269)
Remove the following private functions of the C API: * _PyCodecInfo_GetIncrementalDecoder() * _PyCodecInfo_GetIncrementalEncoder() * _PyCodec_DecodeText() * _PyCodec_EncodeText() * _PyCodec_Forget() * _PyCodec_Lookup() * _PyCodec_LookupTextEncoding() Move these functions to a new pycore_codecs.h internal header file. These functions are no longer exported.
Diffstat (limited to 'Modules/_io')
-rw-r--r--Modules/_io/textio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_io/textio.c b/Modules/_io/textio.c
index e6b1306..c8e6792 100644
--- a/Modules/_io/textio.c
+++ b/Modules/_io/textio.c
@@ -9,6 +9,7 @@
#define PY_SSIZE_T_CLEAN
#include "Python.h"
#include "pycore_call.h" // _PyObject_CallMethod()
+#include "pycore_codecs.h" // _PyCodecInfo_GetIncrementalDecoder()
#include "pycore_interp.h" // PyInterpreterState.fs_codec
#include "pycore_long.h" // _PyLong_GetZero()
#include "pycore_fileutils.h" // _Py_GetLocaleEncoding()