From 852feeb7a0c2b6c1f28ac4f6cfc59ea3905c0be5 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 10 Oct 2009 18:34:19 +0200 Subject: [PATCH] fix undefined symbol in Py<2.6 when assigning to bytes variables --- Cython/Compiler/ModuleNode.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index ce4b2534..ed06bb18 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -454,6 +454,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): code.putln(" #define PyVarObject_HEAD_INIT(type, size) \\") code.putln(" PyObject_HEAD_INIT(type) size,") code.putln(" #define PyType_Modified(t)") + code.putln(" #define PyBytes_CheckExact(b) PyString_CheckExact(b)") code.putln("") code.putln(" typedef struct {") code.putln(" void *buf;") -- 2.26.2