From 174a8a0789e941cbb3e4c47846c2a74543756bfb Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 15 May 2008 00:08:38 +0200 Subject: [PATCH] disable broken 'print' statement for now (PyFile_* went missing) --- Cython/Compiler/Nodes.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index e79062c2..d169157b 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -3775,6 +3775,7 @@ static int __Pyx_PrintItem(PyObject *v) { if (!(f = __Pyx_GetStdout())) return -1; + #if PY_MAJOR_VERSION < 3 if (PyFile_SoftSpace(f, 1)) { if (PyFile_WriteString(" ", f) < 0) return -1; @@ -3789,6 +3790,7 @@ static int __Pyx_PrintItem(PyObject *v) { s[len-1] != ' ') PyFile_SoftSpace(f, 0); } + #endif return 0; } @@ -3797,9 +3799,11 @@ static int __Pyx_PrintNewline(void) { if (!(f = __Pyx_GetStdout())) return -1; + #if PY_MAJOR_VERSION < 3 if (PyFile_WriteString("\n", f) < 0) return -1; PyFile_SoftSpace(f, 0); + #endif return 0; } """] -- 2.26.2