summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-08-24 23:35:47 (GMT)
committerGitHub <noreply@github.com>2023-08-24 23:35:47 (GMT)
commit546cab84448b892c92e68d9c1a3d3b58c13b3463 (patch)
treec376b5fd170cbd7ad902e47f6f59a107467b029c /Python
parentd6ac5c7b105fe57266bd71248e3ada41fedb5ba9 (diff)
downloadcpython-546cab84448b892c92e68d9c1a3d3b58c13b3463.zip
cpython-546cab84448b892c92e68d9c1a3d3b58c13b3463.tar.gz
cpython-546cab84448b892c92e68d9c1a3d3b58c13b3463.tar.bz2
gh-106320: Remove private _PyTraceback functions (#108453)
Move private functions to the internal C API (pycore_traceback.h): * _Py_DisplaySourceLine() * _PyTraceback_Add()
Diffstat (limited to 'Python')
-rw-r--r--Python/_warnings.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Python/_warnings.c b/Python/_warnings.c
index 9e562d7..4b7fb88 100644
--- a/Python/_warnings.c
+++ b/Python/_warnings.c
@@ -1,13 +1,12 @@
#include "Python.h"
#include "pycore_dict.h" // _PyDict_GetItemWithError()
-#include "pycore_frame.h"
-#include "pycore_initconfig.h"
#include "pycore_interp.h" // PyInterpreterState.warnings
#include "pycore_long.h" // _PyLong_GetZero()
-#include "pycore_pyerrors.h"
+#include "pycore_pyerrors.h" // _PyErr_Occurred()
#include "pycore_pylifecycle.h" // _Py_IsInterpreterFinalizing()
#include "pycore_pystate.h" // _PyThreadState_GET()
#include "pycore_sysmodule.h" // _PySys_GetAttr()
+#include "pycore_traceback.h" // _Py_DisplaySourceLine()
#include "clinic/_warnings.c.h"