(file: &PyObject, vm: &VirtualMachine)
| 359 | } |
| 360 | |
| 361 | fn check_closed(file: &PyObject, vm: &VirtualMachine) -> PyResult<()> { |
| 362 | if file_closed(file, vm)? { |
| 363 | Err(io_closed_error(vm)) |
| 364 | } else { |
| 365 | Ok(()) |
| 366 | } |
| 367 | } |
| 368 | |
| 369 | fn check_readable(file: &PyObject, vm: &VirtualMachine) -> PyResult<()> { |
| 370 | if vm.call_method(file, "readable", ())?.try_to_bool(vm)? { |
no test coverage detected