Commits

Armin Rigo committed bc5a570

Two hours of debugging...

Comments (0)

Files changed (1)

c/file_emulator.h

             PyErr_SetFromErrno(PyExc_OSError);
             goto fail;
         }
+        setbuf(f, NULL);    /* non-buffered */
         Py_DECREF(ob_mode);
         ob_mode = NULL;