Mercurial > cpython-lru_cache-weakref
comparison Python/errors.c @ 31797:846b3ee7e106 legacy-trunk
Changed random calls to PyThreadState_Get() to use the macro
| author | Nicholas Bastin <nick.bastin@gmail.com> |
|---|---|
| date | Wed, 24 Mar 2004 22:22:12 +0000 |
| parents | 86fdf8fe7f17 |
| children | ed4dc05ea4b8 |
comparison
equal
deleted
inserted
replaced
| 31796:1c117dbb2def | 31797:846b3ee7e106 |
|---|---|
| 203 | 203 |
| 204 | 204 |
| 205 void | 205 void |
| 206 PyErr_Fetch(PyObject **p_type, PyObject **p_value, PyObject **p_traceback) | 206 PyErr_Fetch(PyObject **p_type, PyObject **p_value, PyObject **p_traceback) |
| 207 { | 207 { |
| 208 PyThreadState *tstate = PyThreadState_Get(); | 208 PyThreadState *tstate = PyThreadState_GET(); |
| 209 | 209 |
| 210 *p_type = tstate->curexc_type; | 210 *p_type = tstate->curexc_type; |
| 211 *p_value = tstate->curexc_value; | 211 *p_value = tstate->curexc_value; |
| 212 *p_traceback = tstate->curexc_traceback; | 212 *p_traceback = tstate->curexc_traceback; |
| 213 | 213 |
