projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0427dd3
)
simplify
author
Stefan Behnel
<scoder@users.berlios.de>
Thu, 15 May 2008 06:00:59 +0000
(08:00 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Thu, 15 May 2008 06:00:59 +0000
(08:00 +0200)
Cython/Compiler/ModuleNode.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ModuleNode.py
b/Cython/Compiler/ModuleNode.py
index 095303a42b8562f331ae071aef574c61dddd383a..d759cf43c0f166f0dc7252e80486f0828fa2358c 100644
(file)
--- a/
Cython/Compiler/ModuleNode.py
+++ b/
Cython/Compiler/ModuleNode.py
@@
-418,7
+418,7
@@
class ModuleNode(Nodes.Node, Nodes.BlockNode):
code.putln("#endif")
code.putln("#if PY_MAJOR_VERSION >= 3")
- code.putln(" #define PyMethod_New(func, self, klass) (
func!=NULL?(Py_INCREF(func),func):NULL
)")
+ code.putln(" #define PyMethod_New(func, self, klass) (
Py_XINCREF(func),func
)")
code.putln(" #define PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y)")
code.putln("#endif")