Skip to content

Commit a25f47e

Browse files
committed
My wild guess
1 parent 8254c65 commit a25f47e

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

vm/src/exceptions.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,11 +1180,9 @@ impl ExceptionZoo {
11801180
"errno" => errno_getter.clone(),
11811181
"strerror" => ctx.new_readonly_getset("strerror", excs.os_error.clone(), make_arg_getter(1)),
11821182
});
1183+
// TODO: this isn't really accurate
11831184
#[cfg(windows)]
1184-
extend_class!(ctx, &excs.os_error, {
1185-
// TODO: this isn't really accurate
1186-
"winerror" => errno_getter.clone(),
1187-
});
1185+
excs.os_error.set_str_attr("winerror", errno_getter.clone());
11881186

11891187
extend_exception!(PyBlockingIOError, ctx, &excs.blocking_io_error);
11901188
extend_exception!(PyChildProcessError, ctx, &excs.child_process_error);

0 commit comments

Comments
 (0)