From 1ed83adb0e95305af858bd41af531e487f54fee7 Mon Sep 17 00:00:00 2001 From: Pablo Galindo Date: Thu, 11 Jun 2020 17:30:46 +0100 Subject: bpo-40939: Remove the old parser (GH-20768) This commit removes the old parser, the deprecated parser module, the old parser compatibility flags and environment variables and all associated support code and documentation. --- Python/compile.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'Python/compile.c') diff --git a/Python/compile.c b/Python/compile.c index fccc688affc..8fe82f91559 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -390,21 +390,6 @@ PyAST_CompileEx(mod_ty mod, const char *filename_str, PyCompilerFlags *flags, } -PyCodeObject * -PyNode_Compile(struct _node *n, const char *filename) -{ - PyCodeObject *co = NULL; - mod_ty mod; - PyArena *arena = PyArena_New(); - if (!arena) - return NULL; - mod = PyAST_FromNode(n, NULL, filename, arena); - if (mod) - co = PyAST_Compile(mod, filename, NULL, arena); - PyArena_Free(arena); - return co; -} - static void compiler_free(struct compiler *c) { -- cgit v1.2.3