From: Stefan Behnel Date: Wed, 14 May 2008 22:08:38 +0000 (+0200) Subject: disable broken 'print' statement for now (PyFile_* went missing) X-Git-Tag: 0.9.8rc1~37^2~76 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=174a8a0789e941cbb3e4c47846c2a74543756bfb;p=cython.git disable broken 'print' statement for now (PyFile_* went missing) --- 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; } """]