gh-131238: Remove more includes from pycore_interp.h (#131480)

This commit is contained in:
Victor Stinner 2025-03-19 23:01:32 +01:00 committed by GitHub
parent 63b5aed06e
commit 20c5f969dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
31 changed files with 92 additions and 57 deletions

View file

@ -1,6 +1,7 @@
#include "Python.h"
#include "pycore_critical_section.h" // Py_BEGIN_CRITICAL_SECTION_MUT()
#include "pycore_frame.h" // PyFrameObject members
#include "pycore_import.h" // _PyImport_GetModules()
#include "pycore_interp.h" // PyInterpreterState.warnings
#include "pycore_long.h" // _PyLong_GetZero()
#include "pycore_pyerrors.h" // _PyErr_Occurred()
@ -8,11 +9,12 @@
#include "pycore_pystate.h" // _PyThreadState_GET()
#include "pycore_sysmodule.h" // _PySys_GetOptionalAttr()
#include "pycore_traceback.h" // _Py_DisplaySourceLine()
#include "pycore_unicodeobject.h" // _PyUnicode_EqualToASCIIString()
#include <stdbool.h>
#include "clinic/_warnings.c.h"
#define MODULE_NAME "_warnings"
PyDoc_STRVAR(warnings__doc__,