From 064a381a143d75b791bef15dbe2d0e461b753748 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Thu, 4 Jun 2009 01:40:29 +0000 Subject: [PATCH] use the offical api --- Objects/dictobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/dictobject.c b/Objects/dictobject.c index c4e6aa58672..d797173863f 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;