From 4ae3356ba8c0c8800acd17c20fb9d0a427628229 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 31 Aug 2008 13:43:01 +0200 Subject: [PATCH] Py3 compile 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 b8a29c74..c16b1116 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -4515,7 +4515,7 @@ static int __Pyx_SplitKeywords( if (!*name) { for (name = argnames; *name; name++) { #if PY_MAJOR_VERSION >= 3 - if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key)) && + if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) && PyUnicode_Compare(**name, key) == 0) break; #else if (PyString_GET_SIZE(**name) == PyString_GET_SIZE(key) && -- 2.26.2