(&self, vm: &VirtualMachine)
| 2043 | |
| 2044 | #[pymethod] |
| 2045 | fn flush(&self, vm: &VirtualMachine) -> PyResult<()> { |
| 2046 | let mut data = self.writer().lock(vm)?; |
| 2047 | let raw = data.check_init(vm)?; |
| 2048 | ensure_unclosed(raw, "flush of closed file", vm)?; |
| 2049 | data.flush_rewind(vm) |
| 2050 | } |
| 2051 | } |
| 2052 | |
| 2053 | #[pyattr] |
nothing calls this directly
no test coverage detected