From 22b3567a18fdcd86f322df1c58319ba843bae11c Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 15 May 2008 09:22:09 +0200 Subject: [PATCH] cleanup --- Cython/Compiler/ModuleNode.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 095303a4..7c4fff71 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -398,6 +398,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): code.putln("#endif") code.putln("#if PY_MAJOR_VERSION >= 3") + code.putln(" #define PyBaseString_Type PyUnicode_Type") code.putln(" #define PyInt_Type PyLong_Type") code.putln(" #define PyInt_Check(op) PyLong_Check(op)") code.putln(" #define PyInt_CheckExact(op) PyLong_CheckExact(op)") @@ -413,10 +414,6 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): code.putln(" #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask") code.putln("#endif") - code.putln("#if PY_MAJOR_VERSION >= 3") - code.putln(" #define PyBaseString_Type PyUnicode_Type") - 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 PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y)") -- 2.26.2