From: Stefan Behnel Date: Wed, 14 May 2008 22:09:18 +0000 (+0200) Subject: replace the now missing PyNumber_Divide() by PyNumber_TrueDivide() X-Git-Tag: 0.9.8rc1~37^2~75 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=315de33103b402c33b425ab8a2b9a540a4e0cda8;p=cython.git replace the now missing PyNumber_Divide() by PyNumber_TrueDivide() --- diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 3a25b73e..095303a4 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -419,6 +419,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): 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 PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y)") code.putln("#endif") code.putln("#ifndef __stdcall")