Py2.3 fix
authorStefan Behnel <scoder@users.berlios.de>
Sat, 10 Oct 2009 10:01:40 +0000 (12:01 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Sat, 10 Oct 2009 10:01:40 +0000 (12:01 +0200)
Cython/Compiler/ModuleNode.py

index 7d5d03d7379b9a13f29e0be626883148131ccd22..dce055f020affdaff184a014dd4395f78237486c 100644 (file)
@@ -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")