From 749249574690c227db1931c5319c36c606fbcb84 Mon Sep 17 00:00:00 2001
From: Stefan Behnel <stefan_ml@behnel.de>
Date: Wed, 1 May 2013 14:03:40 +0200
Subject: [PATCH] use pre-instantiated identifier string when looking up or
 setting the vtable of exported/imported extension types

---
 Cython/Utility/ExtensionTypes.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Cython/Utility/ExtensionTypes.c b/Cython/Utility/ExtensionTypes.c
index f05f043cc..0dde7b814 100644
--- a/Cython/Utility/ExtensionTypes.c
+++ b/Cython/Utility/ExtensionTypes.c
@@ -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)
-- 
2.30.9