From ab73c34f285a6c6f7cc8c7646205069a24032ab9 Mon Sep 17 00:00:00 2001 From: Yan Yanchii Date: Sat, 16 Dec 2023 21:23:49 +0100 Subject: [PATCH] Remove redundant `_PyFrame_GetCode` --- Objects/typeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 08f5f47d586729..14c02902a861bd 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -10450,7 +10450,7 @@ super_init_without_args(_PyInterpreterFrame *cframe, PyCodeObject *co, return -1; } - assert(_PyFrame_GetCode(cframe)->co_nlocalsplus > 0); + assert(co->co_nlocalsplus > 0); PyObject *firstarg = _PyFrame_GetLocalsArray(cframe)[0]; // The first argument might be a cell. if (firstarg != NULL && (_PyLocals_GetKind(co->co_localspluskinds, 0) & CO_FAST_CELL)) {