Mercurial > cpython-lru_cache-weakref
diff Python/traceback.c @ 40704:0e95c77512f5 2.5
Make PyTraceBack_Here use the current thread, not the
frame's thread state. Fixes #1579370.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Tue, 23 Jan 2007 21:11:58 +0000 |
| parents | 7b2e436a4a21 |
| children | 6620a510e9a9 |
line wrap: on
line diff
--- a/Python/traceback.c Tue Jan 23 13:54:30 2007 +0000 +++ b/Python/traceback.c Tue Jan 23 21:11:58 2007 +0000 @@ -113,7 +113,7 @@ int PyTraceBack_Here(PyFrameObject *frame) { - PyThreadState *tstate = frame->f_tstate; + PyThreadState *tstate = PyThreadState_GET(); PyTracebackObject *oldtb = (PyTracebackObject *) tstate->curexc_traceback; PyTracebackObject *tb = newtracebackobject(oldtb, frame); if (tb == NULL)
