diff options
author | Armin Rigo <arigo@tunes.org> | 2006-06-10 10:57:40 (GMT) |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2006-06-10 10:57:40 (GMT) |
commit | acd0d6d4160c6b7f12d80807a4312f6f57338b4d (patch) | |
tree | 77fe16cc74a5bb41fa59e0dc1ba854497c27b307 /Objects/dictobject.c | |
parent | 787fe6d9f629a15d5429fc3017ef33d397e7b179 (diff) | |
download | cpython-acd0d6d4160c6b7f12d80807a4312f6f57338b4d.zip cpython-acd0d6d4160c6b7f12d80807a4312f6f57338b4d.tar.gz cpython-acd0d6d4160c6b7f12d80807a4312f6f57338b4d.tar.bz2 |
SF bug #1503294.
PyThreadState_GET() complains if the tstate is NULL, but only in debug mode.
Diffstat (limited to 'Objects/dictobject.c')
-rw-r--r-- | Objects/dictobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c index f9e45fd..c02f1b2 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -561,7 +561,7 @@ PyDict_GetItem(PyObject *op, PyObject *key) /* We can arrive here with a NULL tstate during initialization: try running "python -Wi" for an example related to string interning. Let's just hope that no exception occurs then... */ - tstate = PyThreadState_GET(); + tstate = _PyThreadState_Current; if (tstate != NULL && tstate->curexc_type != NULL) { /* preserve the existing exception */ PyObject *err_type, *err_value, *err_tb; |