summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
authorBogdan Romanyuk <65823030+wrongnull@users.noreply.github.com>2024-03-19 09:20:38 (GMT)
committerGitHub <noreply@github.com>2024-03-19 09:20:38 (GMT)
commita8e93d3dca086896e668b88b6c5450eaf644c0e7 (patch)
tree4de06c7d1f39d9fb7aa8b3ef8306aa73bb09ed60 /Python/compile.c
parenta3cf0fada09b74b1a6981cc06c4dd0bb1091b092 (diff)
downloadcpython-a8e93d3dca086896e668b88b6c5450eaf644c0e7.zip
cpython-a8e93d3dca086896e668b88b6c5450eaf644c0e7.tar.gz
cpython-a8e93d3dca086896e668b88b6c5450eaf644c0e7.tar.bz2
gh-115756: make PyCode_GetFirstFree an unstable API (GH-115781)
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 6b17f3b..3291d31 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -1830,7 +1830,7 @@ compiler_make_closure(struct compiler *c, location loc,
PyCodeObject *co, Py_ssize_t flags)
{
if (co->co_nfreevars) {
- int i = PyCode_GetFirstFree(co);
+ int i = PyUnstable_Code_GetFirstFree(co);
for (; i < co->co_nlocalsplus; ++i) {
/* Bypass com_addop_varname because it will generate
LOAD_DEREF but LOAD_CLOSURE is needed.