summaryrefslogtreecommitdiffstats
path: root/Python/pylifecycle.c
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 /Python/pylifecycle.c
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 'Python/pylifecycle.c')
-rw-r--r--Python/pylifecycle.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
index 1df35ef..cf8b437 100644
--- a/Python/pylifecycle.c
+++ b/Python/pylifecycle.c
@@ -4,6 +4,7 @@
#include "pycore_call.h" // _PyObject_CallMethod()
#include "pycore_ceval.h" // _PyEval_FiniGIL()
+#include "pycore_codecs.h" // _PyCodec_Lookup()
#include "pycore_context.h" // _PyContext_Init()
#include "pycore_dict.h" // _PyDict_Fini()
#include "pycore_exceptions.h" // _PyExc_InitTypes()