From: Stefan Behnel Date: Wed, 21 May 2008 14:49:51 +0000 (+0200) Subject: cleanup X-Git-Tag: 0.9.8rc1~11^2~10^2~15^2~26 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=215028933402f4e6a1a6757e9df985e2e93e13c4;p=cython.git cleanup --- diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index a16410d3..276551aa 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -412,10 +412,10 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): code.putln(" #define PyInt_AsSsize_t PyLong_AsSsize_t") code.putln(" #define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask") code.putln(" #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask") + code.putln(" #define PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y)") code.putln("#endif") code.putln("#if PY_MAJOR_VERSION >= 3") - code.putln(" #define PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y)") code.putln(" #define PyMethod_New(func, self, klass) PyInstanceMethod_New(func)") code.putln("#endif")