Skip to content

Commit a57f38b

Browse files
committed
Rename builtin io to _io
1 parent fbaff7f commit a57f38b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Lib/io.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from _io import *

vm/src/stdlib/io.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

vm/src/stdlib/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)