We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3d5d3fd + 53a74a1 commit c073a61Copy full SHA for c073a61
stdlib/src/socket.rs
@@ -661,14 +661,11 @@ mod _socket {
661
vm.ctx.exceptions.os_error.to_owned()
662
}
663
664
- #[pyattr(once)]
+ #[pyattr]
665
fn timeout(vm: &VirtualMachine) -> PyTypeRef {
666
- vm.ctx.new_exception_type(
667
- "socket",
668
- "timeout",
669
- Some(vec![vm.ctx.exceptions.os_error.to_owned()]),
670
- )
+ vm.ctx.exceptions.timeout_error.to_owned()
671
+
672
#[pyattr(once)]
673
fn herror(vm: &VirtualMachine) -> PyTypeRef {
674
vm.ctx.new_exception_type(
0 commit comments