(fd: i32, err: std::io::Error, vm: &VirtualMachine)
| 2002 | /// Close fd and convert error to PyException (PEP 446 cleanup) |
| 2003 | #[cold] |
| 2004 | fn close_fd_and_raise(fd: i32, err: std::io::Error, vm: &VirtualMachine) -> PyBaseExceptionRef { |
| 2005 | let _ = unsafe { crt_fd::Owned::from_raw(fd) }; |
| 2006 | err.to_pyexception(vm) |
| 2007 | } |
| 2008 | |
| 2009 | #[pyfunction] |
| 2010 | fn umask(mask: i32, vm: &VirtualMachine) -> PyResult<i32> { |
no test coverage detected