summaryrefslogtreecommitdiffstats
path: root/Modules/_xxinterpchannelsmodule.c
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2023-06-02 22:52:33 (GMT)
committerGitHub <noreply@github.com>2023-06-02 22:52:33 (GMT)
commite6373c0d8b59512aa7f0dea7f3fb162b6ed10fa4 (patch)
treedb75e676b44057aa1f7eed514e0395d832615fb7 /Modules/_xxinterpchannelsmodule.c
parent9ad199ba36791711f596393ca9a20dbf118ef858 (diff)
downloadcpython-e6373c0d8b59512aa7f0dea7f3fb162b6ed10fa4.zip
cpython-e6373c0d8b59512aa7f0dea7f3fb162b6ed10fa4.tar.gz
cpython-e6373c0d8b59512aa7f0dea7f3fb162b6ed10fa4.tar.bz2
gh-101524: Only Use Public C-API in the _xxsubinterpreters Module (gh-105258)
The _xxsubinterpreters module was meant to only use public API. Some internal C-API usage snuck in over the last few years (e.g. gh-28969). This fixes that.
Diffstat (limited to 'Modules/_xxinterpchannelsmodule.c')
-rw-r--r--Modules/_xxinterpchannelsmodule.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/Modules/_xxinterpchannelsmodule.c b/Modules/_xxinterpchannelsmodule.c
index 616dd57..1d7e7f1 100644
--- a/Modules/_xxinterpchannelsmodule.c
+++ b/Modules/_xxinterpchannelsmodule.c
@@ -1,13 +1,9 @@
/* interpreters module */
/* low-level access to interpreter primitives */
-#ifndef Py_BUILD_CORE_BUILTIN
-# define Py_BUILD_CORE_MODULE 1
-#endif
#include "Python.h"
-#include "pycore_pystate.h" // _PyThreadState_GET()
-#include "pycore_interpreteridobject.h"
+#include "interpreteridobject.h"
/*