Skip to content

Commit 443f5c1

Browse files
committed
simpler
1 parent 8213bd3 commit 443f5c1

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

‎Modules/_remote_debugging/code_objects.c‎

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -376,14 +376,9 @@ parse_code_object(RemoteUnwinderObject *unwinder,
376376
goto error;
377377
}
378378
PyErr_Clear();
379-
PyObject *tuple = make_frame_info(
380-
unwinder, _Py_LATIN1_CHR('~'), Py_None,
381-
&_Py_STR(unreadable_frame), Py_None);
382-
if (tuple == NULL) {
383-
goto error;
384-
}
385-
*result = tuple;
386-
return 0;
379+
func = Py_NewRef(&_Py_STR(unreadable_frame));
380+
file = Py_NewRef(_Py_LATIN1_CHR('~'));
381+
goto degraded;
387382
}
388383

389384
func = read_py_str(unwinder,

0 commit comments

Comments
 (0)