(errors: PyUtf8StrRef, vm: &VirtualMachine)
| 114 | |
| 115 | #[pyfunction] |
| 116 | fn _unregister_error(errors: PyUtf8StrRef, vm: &VirtualMachine) -> PyResult<bool> { |
| 117 | if errors.as_str().contains('\0') { |
| 118 | return Err(cstring_error(vm)); |
| 119 | } |
| 120 | vm.state |
| 121 | .codec_registry |
| 122 | .unregister_error(errors.as_str(), vm) |
| 123 | } |
| 124 | |
| 125 | type EncodeResult = PyResult<(Vec<u8>, usize)>; |
| 126 |
nothing calls this directly
no test coverage detected