From f3015a92840311cfe5f31fd57c21bbfadfd2dc1d Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 15 May 2008 08:00:59 +0200 Subject: [PATCH] simplify --- Cython/Compiler/ModuleNode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 095303a4..d759cf43 100644 --- 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") -- 2.26.2