(vm: &VirtualMachine)
| 465 | |
| 466 | #[pyfunction] |
| 467 | fn getgroups(vm: &VirtualMachine) -> PyResult<Vec<PyObjectRef>> { |
| 468 | let group_ids = getgroups_impl().map_err(|e| e.into_pyexception(vm))?; |
| 469 | Ok(group_ids |
| 470 | .into_iter() |
| 471 | .map(|gid| vm.ctx.new_int(gid.as_raw()).into()) |
| 472 | .collect()) |
| 473 | } |
| 474 | |
| 475 | #[pyfunction] |
| 476 | pub(super) fn access(path: OsPath, mode: u8, vm: &VirtualMachine) -> PyResult<bool> { |
no test coverage detected