File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1441,6 +1441,7 @@ pub(super) mod types {
1441
1441
PyBaseException :: slot_new ( cls, args, vm)
1442
1442
}
1443
1443
1444
+ #[ cfg( not( target_arch = "wasm32" ) ) ]
1444
1445
fn os_error_new ( cls : PyTypeRef , args : FuncArgs , vm : & VirtualMachine ) -> PyResult {
1445
1446
// We need this method, because of how `CPython` copies `init`
1446
1447
// from `BaseException` in `SimpleExtendsException` macro.
@@ -1454,6 +1455,12 @@ pub(super) mod types {
1454
1455
PyBaseException :: slot_new ( cls, args, vm)
1455
1456
}
1456
1457
}
1458
+
1459
+ #[ cfg( target_arch = "wasm32" ) ]
1460
+ fn os_error_new ( cls : PyTypeRef , args : FuncArgs , vm : & VirtualMachine ) -> PyResult {
1461
+ PyBaseException :: slot_new ( cls, args, vm)
1462
+ }
1463
+
1457
1464
fn base_exception_init (
1458
1465
zelf : PyRef < PyBaseException > ,
1459
1466
args : FuncArgs ,
You can’t perform that action at this time.
0 commit comments