(_cls: &Py<PyType>, args: Self::Args, vm: &VirtualMachine)
| 580 | type Args = EpollNewArgs; |
| 581 | |
| 582 | fn py_new(_cls: &Py<PyType>, args: Self::Args, vm: &VirtualMachine) -> PyResult<Self> { |
| 583 | if let ..=-2 | 0 = args.sizehint { |
| 584 | return Err(vm.new_value_error("negative sizehint")); |
| 585 | } |
| 586 | if !matches!(args.flags, 0 | libc::EPOLL_CLOEXEC) { |
| 587 | return Err(vm.new_os_error("invalid flags".to_owned())); |
| 588 | } |
| 589 | Self::new().map_err(|e| e.into_pyexception(vm)) |
| 590 | } |
| 591 | } |
| 592 | |
| 593 | #[derive(FromArgs)] |
nothing calls this directly
no test coverage detected