| 425 | } |
| 426 | |
| 427 | static inline int |
| 428 | npy_PyFile_CloseFile(PyObject *file) |
| 429 | { |
| 430 | PyObject *ret; |
| 431 | |
| 432 | ret = PyObject_CallMethod(file, "close", NULL); |
| 433 | if (ret == NULL) { |
| 434 | return -1; |
| 435 | } |
| 436 | Py_DECREF(ret); |
| 437 | return 0; |
| 438 | } |
| 439 | |
| 440 | |
| 441 | /* This is a copy of _PyErr_ChainExceptions |
no outgoing calls
no test coverage detected