(decoded: PyObjectRef, vm: &VirtualMachine)
| 400 | } |
| 401 | |
| 402 | fn check_decoded(decoded: PyObjectRef, vm: &VirtualMachine) -> PyResult<PyStrRef> { |
| 403 | decoded.downcast().map_err(|obj| { |
| 404 | vm.new_type_error(format!( |
| 405 | "decoder should return a string result, not '{}'", |
| 406 | obj.class().name() |
| 407 | )) |
| 408 | }) |
| 409 | } |
| 410 | |
| 411 | #[pyattr] |
| 412 | #[pyclass(name = "_IOBase")] |
no test coverage detected