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.
This commit is contained in:
Victor Stinner 2022-04-07 02:29:52 +02:00 committed by GitHub
parent 5c4d1f6e0e
commit 85addfb9c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 17 additions and 33 deletions

View file

@ -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()