File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1010#include "pycore_modsupport.h" // _PyArg_CheckPositional()
1111#include "pycore_object.h" // _PyObject_GC_UNTRACK()
1212#include "pycore_opcode_metadata.h" // _PyOpcode_Caches
13+ #include "pycore_opcode_utils.h" // RESUME_AFTER_YIELD_FROM
1314#include "pycore_pyerrors.h" // _PyErr_ClearExcState()
1415#include "pycore_pystate.h" // _PyThreadState_GET()
1516
@@ -363,7 +364,7 @@ _PyGen_yf(PyGenObject *gen)
363364 assert (_PyCode_CODE (_PyGen_GetCode (gen ))[0 ].op .code != SEND );
364365 return NULL ;
365366 }
366- if (!is_resume (frame -> instr_ptr ) || frame -> instr_ptr -> op .arg < 2 )
367+ if (!is_resume (frame -> instr_ptr ) || frame -> instr_ptr -> op .arg < RESUME_AFTER_YIELD_FROM )
367368 {
368369 /* Not in a yield from */
369370 return NULL ;
You can’t perform that action at this time.
0 commit comments