We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2dd487 commit f15c51bCopy full SHA for f15c51b
stdlib/src/select.rs
@@ -318,15 +318,10 @@ mod decl {
318
}
319
320
#[pymethod]
321
- fn modify(
322
- &self,
323
- Fildes(fd): Fildes,
324
- eventmask: u16,
325
- vm: &VirtualMachine,
326
- ) -> PyResult<()> {
+ fn modify(&self, Fildes(fd): Fildes, eventmask: u16) -> io::Result<()> {
327
let mut fds = self.fds.lock();
328
let pfd = get_fd_mut(&mut fds, fd)
329
- .ok_or_else(|| io::Error::from_raw_os_error(libc::ENOENT).to_pyexception(vm))?;
+ .ok_or_else(|| io::Error::from_raw_os_error(libc::ENOENT))?;
330
pfd.events = eventmask as i16;
331
Ok(())
332
0 commit comments