aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Objects/frameobject.c
diff options
context:
space:
mode:
authorBogdan Romanyuk <65823030+wrongnull@users.noreply.github.com>2024-03-19 12:20:38 +0300
committerGitHub <noreply@github.com>2024-03-19 09:20:38 +0000
commita8e93d3dca086896e668b88b6c5450eaf644c0e7 (patch)
tree4de06c7d1f39d9fb7aa8b3ef8306aa73bb09ed60 /Objects/frameobject.c
parenta3cf0fada09b74b1a6981cc06c4dd0bb1091b092 (diff)
downloadcpython-a8e93d3dca086896e668b88b6c5450eaf644c0e7.tar.gz
cpython-a8e93d3dca086896e668b88b6c5450eaf644c0e7.zip
gh-115756: make PyCode_GetFirstFree an unstable API (GH-115781)
Diffstat (limited to 'Objects/frameobject.c')
-rw-r--r--Objects/frameobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/frameobject.c b/Objects/frameobject.c
index a914c61aac2..d55c246d80d 100644
--- a/Objects/frameobject.c
+++ b/Objects/frameobject.c
@@ -1140,7 +1140,7 @@ frame_init_get_vars(_PyInterpreterFrame *frame)
/* Free vars have not been initialized -- Do that */
PyObject *closure = ((PyFunctionObject *)frame->f_funcobj)->func_closure;
- int offset = PyCode_GetFirstFree(co);
+ int offset = PyUnstable_Code_GetFirstFree(co);
for (int i = 0; i < co->co_nfreevars; ++i) {
PyObject *o = PyTuple_GET_ITEM(closure, i);
frame->localsplus[offset + i] = Py_NewRef(o);