(&self, args: core::fmt::Arguments<'_>)
| 1877 | |
| 1878 | impl PyStderr<'_> { |
| 1879 | pub fn write_fmt(&self, args: core::fmt::Arguments<'_>) { |
| 1880 | use crate::py_io::Write; |
| 1881 | |
| 1882 | let vm = self.0; |
| 1883 | if let Ok(stderr) = get_stderr(vm) { |
| 1884 | let mut stderr = crate::py_io::PyWriter(stderr, vm); |
| 1885 | if let Ok(()) = stderr.write_fmt(args) { |
| 1886 | return; |
| 1887 | } |
| 1888 | } |
| 1889 | eprint!("{args}") |
| 1890 | } |
| 1891 | } |
| 1892 | |
| 1893 | pub fn get_stdin(vm: &VirtualMachine) -> PyResult { |
nothing calls this directly
no test coverage detected