| 56 | } |
| 57 | |
| 58 | Status Close() { |
| 59 | if (file_) { |
| 60 | PyObject* result = cpp_PyObject_CallMethod(file_.obj(), "close", "()"); |
| 61 | Py_XDECREF(result); |
| 62 | file_.reset(); |
| 63 | PY_RETURN_IF_ERROR(StatusCode::IOError); |
| 64 | } |
| 65 | return Status::OK(); |
| 66 | } |
| 67 | |
| 68 | Status Abort() { |
| 69 | file_.reset(); |
nothing calls this directly
no test coverage detected