mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
[3.11] GH-102818: Do not call PyTraceBack_Here in sys.settrace trampoline (GH-104650)
Backport of GH-104579
This commit is contained in:
parent
667e4ece98
commit
7b3bc95067
4 changed files with 89 additions and 4 deletions
|
@ -950,10 +950,6 @@ call_trampoline(PyThreadState *tstate, PyObject* callback,
|
|||
PyObject *result = _PyObject_FastCallTstate(tstate, callback, stack, 3);
|
||||
|
||||
PyFrame_LocalsToFast(frame, 1);
|
||||
if (result == NULL) {
|
||||
PyTraceBack_Here(frame);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue