(self, vm: &VirtualMachine)
| 2747 | impl IntoPyException for IoOrPyException { |
| 2748 | #[inline] |
| 2749 | fn into_pyexception(self, vm: &VirtualMachine) -> PyBaseExceptionRef { |
| 2750 | match self { |
| 2751 | Self::Timeout => timeout_error(vm).upcast(), |
| 2752 | Self::Py(exc) => exc, |
| 2753 | Self::Io(err) => err.into_pyexception(vm), |
| 2754 | } |
| 2755 | } |
| 2756 | } |
| 2757 | |
| 2758 | #[derive(Copy, Clone)] |