File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed
Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1+ from _io import *
Original file line number Diff line number Diff line change @@ -471,7 +471,7 @@ pub fn make_module(vm: &VirtualMachine) -> PyObjectRef {
471471 "getvalue" => ctx. new_rustfunc( bytes_io_getvalue)
472472 } ) ;
473473
474- py_module ! ( vm, "io " , {
474+ py_module ! ( vm, "_io " , {
475475 "open" => ctx. new_rustfunc( io_open) ,
476476 "IOBase" => io_base,
477477 "RawIOBase" => raw_io_base,
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ pub fn get_module_inits() -> HashMap<String, StdlibInitFunc> {
6161 // disable some modules on WASM
6262 #[ cfg( not( target_arch = "wasm32" ) ) ]
6363 {
64- modules. insert ( "io " . to_string ( ) , Box :: new ( io:: make_module) ) ;
64+ modules. insert ( "_io " . to_string ( ) , Box :: new ( io:: make_module) ) ;
6565 modules. insert ( "_os" . to_string ( ) , Box :: new ( os:: make_module) ) ;
6666 modules. insert ( "socket" . to_string ( ) , Box :: new ( socket:: make_module) ) ;
6767 }
You can’t perform that action at this time.
0 commit comments