Skip to content

Commit 0091341

Browse files
committed
Improve function name
1 parent 89f9496 commit 0091341

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Include/cpython/frameobject.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ PyAPI_FUNC(void) _PyFrame_DebugMallocStats(FILE *out);
8383

8484
PyAPI_FUNC(PyFrameObject *) PyFrame_GetBack(PyFrameObject *frame);
8585

86-
int _PyFrame_StealLocals(PyFrameObject *f);
87-
86+
/** Internal -- Not to be used outside of the interpreter core */
87+
int _PyFrame_TakeLocals(PyFrameObject *f);
8888
PyObject *_PyFrame_GetGlobals(PyFrameObject *f);
8989
PyObject *_PyFrame_GetBuiltins(PyFrameObject *f);

Objects/frameobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ frame_alloc(PyCodeObject *code, PyObject **localsarray)
850850
}
851851

852852
int
853-
_PyFrame_StealLocals(PyFrameObject *f)
853+
_PyFrame_TakeLocals(PyFrameObject *f)
854854
{
855855
assert(f->f_own_locals_memory == 0);
856856
assert(f->f_stackdepth == 0);

Python/ceval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5183,7 +5183,7 @@ _PyEval_Vector(PyThreadState *tstate, PyFrameConstructor *con,
51835183
if (Py_REFCNT(f) > 1) {
51845184
Py_DECREF(f);
51855185
_PyObject_GC_TRACK(f);
5186-
if (_PyFrame_StealLocals(f)) {
5186+
if (_PyFrame_TakeLocals(f)) {
51875187
Py_CLEAR(retval);
51885188
}
51895189
}

0 commit comments

Comments
 (0)