diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-06-04 01:40:29 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-06-04 01:40:29 (GMT) |
commit | 064a381a143d75b791bef15dbe2d0e461b753748 (patch) | |
tree | 04e93607ef5561ee0ecadfd9e6b71ea11033698f | |
parent | 19e79f79ce18febb840df33df93d44c4a1215ad4 (diff) | |
download | cpython-064a381a143d75b791bef15dbe2d0e461b753748.zip cpython-064a381a143d75b791bef15dbe2d0e461b753748.tar.gz cpython-064a381a143d75b791bef15dbe2d0e461b753748.tar.bz2 |
use the offical api
-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 c4e6aa5..d797173 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -715,7 +715,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_Current; + tstate = PyThreadState_GET(); if (tstate != NULL && tstate->curexc_type != NULL) { /* preserve the existing exception */ PyObject *err_type, *err_value, *err_tb; |