From e9f4c708e4e066a6eb7dbb52b7b4f6d89d27809c Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 10 Oct 2009 12:01:40 +0200 Subject: [PATCH] Py2.3 fix --- Cython/Compiler/ModuleNode.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 7d5d03d7..dce055f0 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -433,6 +433,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): code.putln("#if PY_VERSION_HEX < 0x02040000") code.putln(" #define METH_COEXIST 0") code.putln(" #define PyDict_CheckExact(op) (Py_TYPE(op) == &PyDict_Type)") + code.putln(" #define PyDict_Contains(d,o) PySequence_Contains(d,o)") code.putln("#endif") code.putln("#if PY_VERSION_HEX < 0x02050000") -- 2.26.2