(vm: &VirtualMachine)
| 297 | |
| 298 | #[pyfunction] |
| 299 | fn _frozen_module_names(vm: &VirtualMachine) -> PyResult<Vec<PyObjectRef>> { |
| 300 | let names = vm |
| 301 | .state |
| 302 | .frozen |
| 303 | .keys() |
| 304 | .map(|&name| vm.ctx.new_utf8_str(name).into()) |
| 305 | .collect(); |
| 306 | Ok(names) |
| 307 | } |
| 308 | |
| 309 | #[allow(clippy::type_complexity)] |
| 310 | #[pyfunction] |
nothing calls this directly
no test coverage detected