projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c714c5d
)
Py2.3 fix
author
Stefan Behnel
<scoder@users.berlios.de>
Sat, 10 Oct 2009 10:01:40 +0000
(12:01 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sat, 10 Oct 2009 10:01:40 +0000
(12:01 +0200)
Cython/Compiler/ModuleNode.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ModuleNode.py
b/Cython/Compiler/ModuleNode.py
index 7d5d03d7379b9a13f29e0be626883148131ccd22..dce055f020affdaff184a014dd4395f78237486c 100644
(file)
--- 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")