disable broken 'print' statement for now (PyFile_* went missing)
authorStefan Behnel <scoder@users.berlios.de>
Wed, 14 May 2008 22:08:38 +0000 (00:08 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Wed, 14 May 2008 22:08:38 +0000 (00:08 +0200)
Cython/Compiler/Nodes.py

index e79062c223007e0d49ba30551d07fae7ab94182e..d169157b8d775aaf9d51e8d6880758d19e023a6e 100644 (file)
@@ -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;
 }
 """]