summaryrefslogtreecommitdiffstats
path: root/Python/_warnings.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-07-04 09:41:43 (GMT)
committerGitHub <noreply@github.com>2023-07-04 09:41:43 (GMT)
commitc9ce983ae1a361f431a0303aeb6f4b8e1d674275 (patch)
treee5e6dae3885a270ffeea975ff03462c186af68c9 /Python/_warnings.c
parent8a73b57b9b5f6e36dd5a4c279f4d606d9e71a31f (diff)
downloadcpython-c9ce983ae1a361f431a0303aeb6f4b8e1d674275.zip
cpython-c9ce983ae1a361f431a0303aeb6f4b8e1d674275.tar.gz
cpython-c9ce983ae1a361f431a0303aeb6f4b8e1d674275.tar.bz2
gh-106320: Remove private pylifecycle.h functions (#106400)
Remove private pylifecycle.h functions: move them to the internal C API ( pycore_atexit.h, pycore_pylifecycle.h and pycore_signal.h). No longer export most of these functions. Move _testcapi.test_atexit() to _testinternalcapi.
Diffstat (limited to 'Python/_warnings.c')
-rw-r--r--Python/_warnings.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/_warnings.c b/Python/_warnings.c
index e4941f7..e0580f0 100644
--- a/Python/_warnings.c
+++ b/Python/_warnings.c
@@ -1,10 +1,11 @@
#include "Python.h"
+#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_pylifecycle.h" // _Py_IsInterpreterFinalizing()
#include "pycore_pystate.h" // _PyThreadState_GET()
-#include "pycore_frame.h"
#include "clinic/_warnings.c.h"
#define MODULE_NAME "_warnings"