Skip to content

Commit d386e50

Browse files
committed
pythongh-153569: Export incremental decoder helper for parser generator tests
1 parent 33d219c commit d386e50

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎Include/internal/pycore_codecs.h‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,9 @@ extern PyObject* _PyCodec_DecodeText(
5959
const char *encoding,
6060
const char *errors);
6161

62-
/* These two aren't actually text encoding specific, but _io.TextIOWrapper
63-
* is the only current API consumer.
64-
*/
65-
extern PyObject* _PyCodecInfo_GetIncrementalDecoder(
62+
/* Helpers to create incremental codecs from a codec info object. */
63+
// Export for test_peg_generator.
64+
PyAPI_FUNC(PyObject*) _PyCodecInfo_GetIncrementalDecoder(
6665
PyObject *codec_info,
6766
const char *errors);
6867

0 commit comments

Comments
 (0)