summaryrefslogtreecommitdiffstats
path: root/Python/ast_opt.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-04-07 19:34:22 (GMT)
committerGitHub <noreply@github.com>2021-04-07 19:34:22 (GMT)
commitd27f8d2e07d31670af469ef387a37bc9e96ea8ad (patch)
treedbcf728b4340011a6c87ff75f59352599eaba6b8 /Python/ast_opt.c
parent58d72cab89cf9652acc0bf0007aa20b2bcc98499 (diff)
downloadcpython-d27f8d2e07d31670af469ef387a37bc9e96ea8ad.zip
cpython-d27f8d2e07d31670af469ef387a37bc9e96ea8ad.tar.gz
cpython-d27f8d2e07d31670af469ef387a37bc9e96ea8ad.tar.bz2
bpo-43244: Rename pycore_ast.h functions to _PyAST_xxx() (GH-25252)
Rename AST functions of pycore_ast.h to use the "_PyAST_" prefix. Remove macros creating aliases without prefix. For example, Module() becomes _PyAST_Module(). Update Grammar/python.gram to use _PyAST_xxx() functions.
Diffstat (limited to 'Python/ast_opt.c')
-rw-r--r--Python/ast_opt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Python/ast_opt.c b/Python/ast_opt.c
index 46dba76..311e0c7 100644
--- a/Python/ast_opt.c
+++ b/Python/ast_opt.c
@@ -451,8 +451,9 @@ astfold_body(asdl_stmt_seq *stmts, PyArena *ctx_, _PyASTOptimizeState *state)
return 0;
}
asdl_seq_SET(values, 0, st->v.Expr.value);
- expr_ty expr = _Py_JoinedStr(values, st->lineno, st->col_offset,
- st->end_lineno, st->end_col_offset, ctx_);
+ expr_ty expr = _PyAST_JoinedStr(values, st->lineno, st->col_offset,
+ st->end_lineno, st->end_col_offset,
+ ctx_);
if (!expr) {
return 0;
}