Commit 74924957 authored by Stefan Behnel's avatar Stefan Behnel

use pre-instantiated identifier string when looking up or setting the vtable...

use pre-instantiated identifier string when looking up or setting the vtable of exported/imported extension types
parent 9053c1e7
......@@ -67,7 +67,7 @@ static int __Pyx_SetVtable(PyObject *dict, void *vtable) {
#endif
if (!ob)
goto bad;
if (PyDict_SetItemString(dict, "__pyx_vtable__", ob) < 0)
if (PyDict_SetItem(dict, PYIDENT("__pyx_vtable__"), ob) < 0)
goto bad;
Py_DECREF(ob);
return 0;
......@@ -84,7 +84,7 @@ static void* __Pyx_GetVtable(PyObject *dict); /*proto*/
static void* __Pyx_GetVtable(PyObject *dict) {
void* ptr;
PyObject *ob = PyMapping_GetItemString(dict, (char *)"__pyx_vtable__");
PyObject *ob = PyObject_GetItem(dict, PYIDENT("__pyx_vtable__"));
if (!ob)
goto bad;
#if PY_VERSION_HEX >= 0x02070000 && !(PY_MAJOR_VERSION==3&&PY_MINOR_VERSION==0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment