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

Function new_zlib_error

crates/stdlib/src/zlib.rs:468–471  ·  view source on GitHub ↗
(message: impl Into<String>, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

466 }
467
468 fn new_zlib_error(message: impl Into<String>, vm: &VirtualMachine) -> PyBaseExceptionRef {
469 let msg: String = message.into();
470 vm.new_exception_msg(vm.class("zlib", "error"), msg.into())
471 }
472
473 struct Level(Option<flate2::Compression>);
474

Callers 9

compressFunction · 0.85
decompressFunction · 0.85
decompressobjFunction · 0.85
decompress_innerMethod · 0.85
flushMethod · 0.85
compress_vecMethod · 0.85
new_errorMethod · 0.85
py_newMethod · 0.85
decompressMethod · 0.85

Calls 2

new_exception_msgMethod · 0.80
classMethod · 0.45

Tested by

no test coverage detected