From 315de33103b402c33b425ab8a2b9a540a4e0cda8 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 15 May 2008 00:09:18 +0200 Subject: [PATCH] replace the now missing PyNumber_Divide() by PyNumber_TrueDivide() --- Cython/Compiler/ModuleNode.py | 1 + 1 file changed, 1 insertion(+) 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") -- 2.26.2