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

Function unregister

crates/vm/src/stdlib/_codecs.rs:26–28  ·  view source on GitHub ↗
(search_function: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

24
25 #[pyfunction]
26 fn unregister(search_function: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> {
27 vm.state.codec_registry.unregister(search_function)
28 }
29
30 #[pyfunction]
31 fn lookup(encoding: PyUtf8StrRef, vm: &VirtualMachine) -> PyResult {

Callers

nothing calls this directly

Calls 1

unregisterMethod · 0.45

Tested by

no test coverage detected