Searched refs:ob_file (Results 1 – 1 of 1) sorted by relevance
31 static FILE *PyFile_AsFile(PyObject *ob_file) in PyFile_AsFile() argument38 ob = PyObject_CallMethod(ob_file, "flush", NULL); in PyFile_AsFile()43 ob_capsule = PyObject_GetAttrString(ob_file, "__cffi_FILE"); in PyFile_AsFile()47 fd = PyObject_AsFileDescriptor(ob_file); in PyFile_AsFile()51 ob_mode = PyObject_GetAttrString(ob_file, "mode"); in PyFile_AsFile()80 if (PyObject_SetAttrString(ob_file, "__cffi_FILE", ob_capsule) < 0) in PyFile_AsFile()