summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-09-04 23:54:55 (GMT)
committerGitHub <noreply@github.com>2023-09-04 23:54:55 (GMT)
commit676593859e75d4c3543d143092b77f55389006e4 (patch)
tree9b88c52954c170674e1ad0bae3018009489942a4 /Python/compile.c
parent6304d983a0656c1841769bf36e5b42819508d21c (diff)
downloadcpython-676593859e75d4c3543d143092b77f55389006e4.zip
cpython-676593859e75d4c3543d143092b77f55389006e4.tar.gz
cpython-676593859e75d4c3543d143092b77f55389006e4.tar.bz2
gh-106320: Remove private _PyErr_WriteUnraisableMsg() (#108863)
Move the private _PyErr_WriteUnraisableMsg() functions to the internal C API (pycore_pyerrors.h). Move write_unraisable_exc() from _testcapi to _testinternalcapi.
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 50e29b4..ae9edc9 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -34,6 +34,7 @@
#include "pycore_flowgraph.h"
#include "pycore_intrinsics.h"
#include "pycore_long.h" // _PyLong_GetZero()
+#include "pycore_pyerrors.h" // _PyErr_WriteUnraisableMsg()
#include "pycore_pystate.h" // _Py_GetConfig()
#include "pycore_setobject.h" // _PySet_NextEntry()
#include "pycore_symtable.h" // PySTEntryObject, _PyFuture_FromAST()