diff options
author | Mark Shannon <mark@hotpy.org> | 2023-05-19 11:40:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-19 11:40:48 (GMT) |
commit | c26d03d5d6da94367c7f9cd93185616f2385db30 (patch) | |
tree | dab41164b9c8dc00e541647d5424da48bd7c8910 /Python/sysmodule.c | |
parent | 616fcad6e2e10b0d0252e7f3688e61c468c54e6e (diff) | |
download | cpython-c26d03d5d6da94367c7f9cd93185616f2385db30.zip cpython-c26d03d5d6da94367c7f9cd93185616f2385db30.tar.gz cpython-c26d03d5d6da94367c7f9cd93185616f2385db30.tar.bz2 |
GH-102818: Do not call `PyTraceBack_Here` in sys.settrace trampoline. (GH-104579)
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r-- | Python/sysmodule.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index c116c40..7510be5 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -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; } |