From a9876b7b2522dd0d8f0f40ec7f8b3c9fac28137e Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 16 Apr 2010 08:43:24 +0200 Subject: [PATCH] fix PyBytes_GET_SIZE usage --- Cython/Compiler/ExprNodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 9fb76af9..4f104a9c 100755 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -6107,7 +6107,7 @@ class CoerceToBooleanNode(CoercionNode): _special_builtins = { Builtin.list_type : 'PyList_GET_SIZE', Builtin.tuple_type : 'PyTuple_GET_SIZE', - Builtin.bytes_type : 'PyBytes_GET_SIZE', + Builtin.bytes_type : '__Pyx_PyBytes_GET_SIZE', Builtin.unicode_type : 'PyUnicode_GET_SIZE', } -- 2.26.2