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

Function termios_error

crates/stdlib/src/termios.rs:263–270  ·  view source on GitHub ↗
(err: std::io::Error, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

261 }
262
263 fn termios_error(err: std::io::Error, vm: &VirtualMachine) -> PyBaseExceptionRef {
264 vm.new_os_subtype_error(
265 error_type(vm),
266 Some(err.posix_errno()),
267 vm.ctx.new_str(err.to_string()),
268 )
269 .upcast()
270 }
271
272 #[pyattr(name = "error", once)]
273 fn error_type(vm: &VirtualMachine) -> PyTypeRef {

Callers 6

tcgetattrFunction · 0.85
tcsetattrFunction · 0.85
tcsendbreakFunction · 0.85
tcdrainFunction · 0.85
tcflushFunction · 0.85
tcflowFunction · 0.85

Calls 7

upcastMethod · 0.80
new_os_subtype_errorMethod · 0.80
posix_errnoMethod · 0.80
to_stringMethod · 0.80
error_typeFunction · 0.70
SomeClass · 0.50
new_strMethod · 0.45

Tested by

no test coverage detected