summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorPablo Galindo Salgado <Pablogsal@gmail.com>2021-11-20 14:36:07 (GMT)
committerGitHub <noreply@github.com>2021-11-20 14:36:07 (GMT)
commitfdcc46d9554094994f78bedf6dc9220e5d5ee668 (patch)
tree4f8dbf3fc78bf76311d63c84a5c2384c9fd089d9 /Include
parent6d430ef5ab62158a200b94dff31b89524a9576bb (diff)
downloadcpython-fdcc46d9554094994f78bedf6dc9220e5d5ee668.zip
cpython-fdcc46d9554094994f78bedf6dc9220e5d5ee668.tar.gz
cpython-fdcc46d9554094994f78bedf6dc9220e5d5ee668.tar.bz2
bpo-45848: Allow the parser to get error lines from encoded files (GH-29646)
Diffstat (limited to 'Include')
-rw-r--r--Include/cpython/pyerrors.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Include/cpython/pyerrors.h b/Include/cpython/pyerrors.h
index 28ab565..a07018a 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,