From fdcc46d9554094994f78bedf6dc9220e5d5ee668 Mon Sep 17 00:00:00 2001 From: Pablo Galindo Salgado Date: Sat, 20 Nov 2021 14:36:07 +0000 Subject: bpo-45848: Allow the parser to get error lines from encoded files (GH-29646) --- Include/cpython/pyerrors.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Include/cpython/pyerrors.h') diff --git a/Include/cpython/pyerrors.h b/Include/cpython/pyerrors.h index 28ab565dde..a07018abae 100644 --- a/Include/cpython/pyerrors.h +++ b/Include/cpython/pyerrors.h @@ -149,6 +149,11 @@ PyAPI_FUNC(PyObject *) PyErr_ProgramTextObject( PyObject *filename, int lineno); +PyAPI_FUNC(PyObject *) _PyErr_ProgramDecodedTextObject( + PyObject *filename, + int lineno, + const char* encoding); + PyAPI_FUNC(PyObject *) _PyUnicodeTranslateError_Create( PyObject *object, Py_ssize_t start, -- cgit v1.2.1