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

Function _release_lock

crates/vm/src/stdlib/_warnings.rs:72–77  ·  view source on GitHub ↗
(vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

70
71 #[pyfunction]
72 fn _release_lock(vm: &VirtualMachine) -> PyResult<()> {
73 if !vm.state.warnings.release_lock() {
74 return Err(vm.new_runtime_error("cannot release un-acquired lock"));
75 }
76 Ok(())
77 }
78
79 #[pyfunction]
80 fn _filters_mutated_lock_held(vm: &VirtualMachine) {

Callers 1

__exit__Method · 0.90

Calls 2

release_lockMethod · 0.80
ErrClass · 0.50

Tested by

no test coverage detected