]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Remove private _PyCodec_Lookup() function (#106269)
authorVictor Stinner <vstinner@python.org>
Fri, 30 Jun 2023 09:34:01 +0000 (11:34 +0200)
committerGitHub <noreply@github.com>
Fri, 30 Jun 2023 09:34:01 +0000 (09:34 +0000)
commit0b51463862798d3124f542a076e02ea3759551a4
tree46bf3938ad08e36501b744444dadcbfacf78540f
parente17420db5d0452a9c56c8cb324d37fc2c04309c0
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.
Include/codecs.h
Include/internal/pycore_codecs.h [new file with mode: 0644]
Makefile.pre.in
Modules/_codecsmodule.c
Modules/_io/textio.c
Objects/unicodeobject.c
PCbuild/pythoncore.vcxproj
PCbuild/pythoncore.vcxproj.filters
Python/pylifecycle.c