MCPcopy Index your code
hub / github.com/RustPython/RustPython / os_err

Function os_err

crates/vm/src/stdlib/_io.rs:241–244  ·  view source on GitHub ↗
(vm: &VirtualMachine, err: io::Error)

Source from the content-addressed store, hash-verified

239 }
240
241 fn os_err(vm: &VirtualMachine, err: io::Error) -> PyBaseExceptionRef {
242 use crate::convert::ToPyException;
243 err.to_pyexception(vm)
244 }
245
246 pub(super) fn io_closed_error(vm: &VirtualMachine) -> PyBaseExceptionRef {
247 vm.new_value_error("I/O operation on closed file")

Callers 3

read_untilMethod · 0.85
seekMethod · 0.85
__setstate__Method · 0.85

Calls 1

to_pyexceptionMethod · 0.45

Tested by

no test coverage detected