Py3k C-API usage fix
authorStefan Behnel <scoder@users.berlios.de>
Fri, 22 Aug 2008 21:21:27 +0000 (23:21 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Fri, 22 Aug 2008 21:21:27 +0000 (23:21 +0200)
Cython/Compiler/Nodes.py

index b5285dafde22c3b9ce667b564bc6832ab31b5626..6adb69ac6eef512de6af5bd925788a8014010abe 100644 (file)
@@ -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;
                 }