(name: PyUtf8StrRef, vm: &VirtualMachine)
| 106 | |
| 107 | #[pyfunction] |
| 108 | fn lookup_error(name: PyUtf8StrRef, vm: &VirtualMachine) -> PyResult { |
| 109 | if name.as_str().contains('\0') { |
| 110 | return Err(cstring_error(vm)); |
| 111 | } |
| 112 | vm.state.codec_registry.lookup_error(name.as_str(), vm) |
| 113 | } |
| 114 | |
| 115 | #[pyfunction] |
| 116 | fn _unregister_error(errors: PyUtf8StrRef, vm: &VirtualMachine) -> PyResult<bool> { |
no test coverage detected