Commit 111409ea authored by Stefan Behnel's avatar Stefan Behnel

Py3k C-API usage fix

parent 54ab9f4c
......@@ -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;
}
......
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