diff options
author | Yan Yanchii <yyanchiy@gmail.com> | 2025-05-04 20:07:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-04 21:07:35 +0300 |
commit | 0a1fedb70b94217055114357fa5f5be5ea62bdbe (patch) | |
tree | 944d91dc5c995c29584a52deebd0bd1fe141ceaf /Python/pythonrun.c | |
parent | 8eaaf1640232191319f83917ef72e7853af25681 (diff) | |
download | cpython-0a1fedb70b94217055114357fa5f5be5ea62bdbe.tar.gz cpython-0a1fedb70b94217055114357fa5f5be5ea62bdbe.zip |
gh-126835: Rename `ast_opt.c` to `ast_preprocess.c` and related stuff after moving const folding to the peephole optimizier (#131830)
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r-- | Python/pythonrun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 23af8b6f6be..4ee287af72f 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -1498,7 +1498,7 @@ Py_CompileStringObject(const char *str, PyObject *filename, int start, } if (flags && (flags->cf_flags & PyCF_ONLY_AST)) { int syntax_check_only = ((flags->cf_flags & PyCF_OPTIMIZED_AST) == PyCF_ONLY_AST); /* unoptiomized AST */ - if (_PyCompile_AstOptimize(mod, filename, flags, optimize, arena, syntax_check_only) < 0) { + if (_PyCompile_AstPreprocess(mod, filename, flags, optimize, arena, syntax_check_only) < 0) { _PyArena_Free(arena); return NULL; } |