1. Python CFFI
  2. Untitled project
  3. cffi

Commits

Armin Rigo  committed bc5a570

Two hours of debugging...

  • Participants
  • Parent commits adc872f
  • Branches default

Comments (0)

Files changed (1)

File c/file_emulator.h

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