From: Stefan Behnel Date: Fri, 22 Aug 2008 21:21:27 +0000 (+0200) Subject: Py3k C-API usage fix X-Git-Tag: 0.9.9.2.beta~63^2~44 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=111409ea452703b16717f65135a4d1aabbdc966d;p=cython.git Py3k C-API usage fix --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index b5285daf..6adb69ac 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -4451,7 +4451,7 @@ static int __Pyx_CheckKeywords( #if PY_MAJOR_VERSION >= 3 PyObject* utf8_key = PyUnicode_AsUTF8String(key); if (!utf8_key) return -1; - if (strcmp(*name, PyString_AS_STRING(utf8_key)) == 0) { + if (strcmp(*name, PyBytes_AS_STRING(utf8_key)) == 0) { Py_DECREF(utf8_key); break; }