summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-04-07 02:29:52 +0200
committerGitHub <noreply@github.com>2022-04-07 02:29:52 +0200
commit85addfb9c6496eb3d26082348cf5aca848c877ef (patch)
treeb6a0cd3eda126249ee74b718cc7b2c2a3f4d5876 /Python
parent5c4d1f6e0e192653560ae2941a6677fbf4fbd1f2 (diff)
downloadcpython-git-85addfb9c6496eb3d26082348cf5aca848c877ef.tar.gz
bpo-35134: Remove the Include/code.h header file (GH-32385)
Remove the Include/code.h header file. C extensions should only include the main <Python.h> header file. Python.h includes directly Include/cpython/code.h instead.
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c1
-rw-r--r--Python/marshal.c1
-rw-r--r--Python/pythonrun.c1
-rw-r--r--Python/sysmodule.c1
-rw-r--r--Python/traceback.c1
5 files changed, 0 insertions, 5 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 487e09bc66..5384aac5d6 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -23,7 +23,6 @@
#include "pycore_tuple.h" // _PyTuple_ITEMS()
#include "pycore_emscripten_signal.h" // _Py_CHECK_EMSCRIPTEN_SIGNALS
-#include "code.h"
#include "pycore_dict.h"
#include "dictobject.h"
#include "frameobject.h"
diff --git a/Python/marshal.c b/Python/marshal.c
index e7cf6553bd..19abcc8ffe 100644
--- a/Python/marshal.c
+++ b/Python/marshal.c
@@ -12,7 +12,6 @@
#include "pycore_call.h" // _PyObject_CallNoArgs()
#include "pycore_code.h" // _PyCode_New()
#include "pycore_hashtable.h" // _Py_hashtable_t
-#include "code.h"
#include "marshal.h" // Py_MARSHAL_VERSION
/*[clinic input]
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 38ca952838..d117b790df 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -25,7 +25,6 @@
#include "token.h" // INDENT
#include "errcode.h" // E_EOF
-#include "code.h" // PyCodeObject
#include "marshal.h" // PyMarshal_ReadLongFromFile()
#ifdef MS_WINDOWS
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index de4e10a7e1..ac44b803b2 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -31,7 +31,6 @@ Data members:
#include "pycore_structseq.h" // _PyStructSequence_InitType()
#include "pycore_tuple.h" // _PyTuple_FromArray()
-#include "code.h"
#include "frameobject.h" // PyFrame_GetBack()
#include "pydtrace.h"
#include "osdefs.h" // DELIM
diff --git a/Python/traceback.c b/Python/traceback.c
index 0d0eb954c2..488c1b17cf 100644
--- a/Python/traceback.c
+++ b/Python/traceback.c
@@ -3,7 +3,6 @@
#include "Python.h"
-#include "code.h" // PyCode_Addr2Line etc
#include "frameobject.h" // PyFrame_GetBack()
#include "pycore_ast.h" // asdl_seq_*
#include "pycore_call.h" // _PyObject_CallMethodFormat()