diff options
author | Stefan Behnel <scoder@users.berlios.de> | 2008-05-15 09:22:09 +0200 |
---|---|---|
committer | Stefan Behnel <scoder@users.berlios.de> | 2008-05-15 09:22:09 +0200 |
commit | 22b3567a18fdcd86f322df1c58319ba843bae11c (patch) | |
tree | e876f5d377ad94c0c116ee5953e150fde7b214f9 /Cython/Compiler/ModuleNode.py | |
parent | b8b748a7d5db878da3e47da94858d6f1728598de (diff) | |
download | cython-22b3567a18fdcd86f322df1c58319ba843bae11c.tar.gz |
cleanup
Diffstat (limited to 'Cython/Compiler/ModuleNode.py')
-rw-r--r-- | Cython/Compiler/ModuleNode.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 095303a42..7c4fff717 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)") @@ -414,10 +415,6 @@ 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("#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)") code.putln("#endif") |