@@ -615,21 +615,6 @@ static PyObject* unsupported(PyObject* dummy, PyObject* args) {
615
615
return obj2 ;
616
616
}
617
617
618
- static PyObject * skip_code (PyObject * dummy , PyObject * obj ) {
619
- if (!PyCode_Check (obj )) {
620
- PyErr_SetString (PyExc_TypeError , "expected a code object" );
621
- return NULL ;
622
- }
623
-
624
- PyCodeObject * code = (PyCodeObject * )obj ;
625
- ExtraState * extra = get_extra_state (code );
626
- if (extra == NULL ) {
627
- extra = init_and_set_extra_state (code );
628
- }
629
- extra_state_set_exec_strategy (extra , (FrameExecStrategy ){SKIP , DEFAULT });
630
- Py_RETURN_NONE ;
631
- }
632
-
633
618
static PyObject * set_guard_error_hook (PyObject * dummy , PyObject * obj ) {
634
619
if (obj == Py_None ) {
635
620
obj = NULL ;
@@ -676,7 +661,7 @@ static PyMethodDef _methods[] = {
676
661
{"get_eval_frame_callback" , get_eval_frame_callback_py , METH_NOARGS , NULL },
677
662
{"reset_code" , reset_code , METH_O , NULL },
678
663
{"unsupported" , unsupported , METH_VARARGS , NULL },
679
- {"skip_code " , skip_code , METH_O , NULL },
664
+ {"set_code_exec_strategy " , set_code_exec_strategy , METH_VARARGS , NULL },
680
665
{"set_guard_error_hook" , set_guard_error_hook , METH_O , NULL },
681
666
{"raise_sigtrap" , raise_sigtrap , METH_NOARGS , NULL },
682
667
{NULL , NULL , 0 , NULL }};
0 commit comments