From 111409ea452703b16717f65135a4d1aabbdc966d Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 22 Aug 2008 23:21:27 +0200 Subject: [PATCH] Py3k C-API usage fix --- Cython/Compiler/Nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.26.2