Skip to content

Commit f7018aa

Browse files
committed
fixed guard condition
1 parent 661d057 commit f7018aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/ceval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2477,7 +2477,7 @@ _PyEvalFramePushAndInit(PyThreadState *tstate, _PyStackRef func,
24772477
}
24782478
_PyFrame_Initialize(tstate, frame, func, locals, code, 0, previous);
24792479
if (code->co_flags & CO_OPTIMIZED && locals != NULL && locals != func_obj->func_globals &&
2480-
kwnames == NULL) { /* kwnames can be NULL only when invoked through PyEval_EvalCode */
2480+
args == NULL) { /* args can be NULL only when invoked through PyEval_EvalCode */
24812481
for (size_t i = 0; i < argcount; i++) {
24822482
PyStackRef_CLOSE(args[i]);
24832483
}

0 commit comments

Comments
 (0)