diff options
author | Victor Stinner <vstinner@python.org> | 2021-03-17 22:50:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-17 22:50:50 (GMT) |
commit | 526fdeb2278b61653df704d7cfcaedde504dee48 (patch) | |
tree | 8c17493b7a55c2af626acdd2134920d8ca0a6757 /Python/future.c | |
parent | b4536e1c6abe4c6219177a89e16575d05ea22f64 (diff) | |
download | cpython-526fdeb2278b61653df704d7cfcaedde504dee48.zip cpython-526fdeb2278b61653df704d7cfcaedde504dee48.tar.gz cpython-526fdeb2278b61653df704d7cfcaedde504dee48.tar.bz2 |
bpo-43244: Add pycore_ast.h header file (GH-24908)
Move _PyAST_GetDocString() and _PyAST_ExprAsUnicode() functions the
internal C API: from Include/ast.h to a new
Include/internal/pycore_ast.h header file. Don't export these
functions anymore: replace PyAPI_FUNC() with extern.
Remove also unused includes.
Diffstat (limited to 'Python/future.c')
-rw-r--r-- | Python/future.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Python/future.c b/Python/future.c index 4b73eb6..37e7a22 100644 --- a/Python/future.c +++ b/Python/future.c @@ -1,9 +1,5 @@ #include "Python.h" -#include "Python-ast.h" -#include "token.h" -#include "code.h" -#include "symtable.h" -#include "ast.h" +#include "pycore_ast.h" // _PyAST_GetDocString() #define UNDEFINED_FUTURE_FEATURE "future feature %.100s is not defined" #define ERR_LATE_FUTURE \ |