(vm: &VirtualMachine, msg: String)
| 199 | } |
| 200 | |
| 201 | pub fn new_unsupported_operation(vm: &VirtualMachine, msg: String) -> PyBaseExceptionRef { |
| 202 | vm.new_os_subtype_error(unsupported_operation().to_owned(), None, msg) |
| 203 | .upcast() |
| 204 | } |
| 205 | |
| 206 | fn _unsupported<T>(vm: &VirtualMachine, zelf: &PyObject, operation: &str) -> PyResult<T> { |
| 207 | Err(new_unsupported_operation( |
no test coverage detected