(
instance: PyObjectRef,
lines: ArgIterable,
vm: &VirtualMachine,
)
| 547 | |
| 548 | #[pymethod] |
| 549 | fn writelines( |
| 550 | instance: PyObjectRef, |
| 551 | lines: ArgIterable, |
| 552 | vm: &VirtualMachine, |
| 553 | ) -> PyResult<()> { |
| 554 | check_closed(&instance, vm)?; |
| 555 | for line in lines.iter(vm)? { |
| 556 | vm.call_method(&instance, "write", (line?,))?; |
| 557 | } |
| 558 | Ok(()) |
| 559 | } |
| 560 | |
| 561 | #[pymethod(name = "_checkClosed")] |
| 562 | fn check_closed(instance: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> { |
nothing calls this directly
no test coverage detected