| 414 | } |
| 415 | |
| 416 | static inline PyObject* |
| 417 | npy_PyFile_OpenFile(PyObject *filename, const char *mode) |
| 418 | { |
| 419 | PyObject *open; |
| 420 | open = PyDict_GetItemString(PyEval_GetBuiltins(), "open"); |
| 421 | if (open == NULL) { |
| 422 | return NULL; |
| 423 | } |
| 424 | return PyObject_CallFunction(open, "Os", filename, mode); |
| 425 | } |
| 426 | |
| 427 | static inline int |
| 428 | npy_PyFile_CloseFile(PyObject *file) |
no outgoing calls
no test coverage detected