[Python-checkins] r73196 - python/trunk/Objects/dictobject.c
benjamin.peterson
python-checkins at python.org
Thu Jun 4 03:40:29 CEST 2009
Author: benjamin.peterson
Date: Thu Jun 4 03:40:29 2009
New Revision: 73196
Log:
use the offical api
Modified:
python/trunk/Objects/dictobject.c
Modified: python/trunk/Objects/dictobject.c
==============================================================================
--- python/trunk/Objects/dictobject.c (original)
+++ python/trunk/Objects/dictobject.c Thu Jun 4 03:40:29 2009
@@ -715,7 +715,7 @@
/* 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;
More information about the Python-checkins
mailing list