Skip to content

Commit 433282f

Browse files
committed
Add review comment
1 parent 3fd46c3 commit 433282f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Python/specialize.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2927,8 +2927,9 @@ _Py_Specialize_ForIter(_PyStackRef iter, _PyStackRef null_or_index, _Py_CODEUNIT
29272927
instr[oparg + INLINE_CACHE_ENTRIES_FOR_ITER + 1].op.code == INSTRUMENTED_END_FOR
29282928
);
29292929
/* Don't specialize if PEP 523 is active */
2930-
if (_PyInterpreterState_GET()->eval_frame)
2930+
if (_PyInterpreterState_GET()->eval_frame) {
29312931
goto failure;
2932+
}
29322933
specialize(instr, FOR_ITER_GEN);
29332934
return;
29342935
}

0 commit comments

Comments
 (0)