(
vm: &VirtualMachine,
len: usize,
what: &'static str,
owner: &'static str,
)
| 70 | } |
| 71 | |
| 72 | fn validate_nonempty_seq( |
| 73 | vm: &VirtualMachine, |
| 74 | len: usize, |
| 75 | what: &'static str, |
| 76 | owner: &'static str, |
| 77 | ) -> PyResult<()> { |
| 78 | if len == 0 { |
| 79 | return Err(vm.new_value_error(format!("empty {what} on {owner}"))); |
| 80 | } |
| 81 | Ok(()) |
| 82 | } |
| 83 | |
| 84 | fn validate_assignlist( |
| 85 | vm: &VirtualMachine, |
no test coverage detected