We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55a22c5 commit dd74372Copy full SHA for dd74372
vm/src/stdlib/os.rs
@@ -110,7 +110,7 @@ fn os_error(vm: &mut VirtualMachine, args: PyFuncArgs) -> PyResult {
110
}
111
112
pub fn mk_module(ctx: &PyContext) -> PyObjectRef {
113
- let py_mod = ctx.new_module(&"io".to_string(), ctx.new_scope(None));
+ let py_mod = ctx.new_module(&"os".to_string(), ctx.new_scope(None));
114
ctx.set_attr(&py_mod, "open", ctx.new_rustfunc(os_open));
115
ctx.set_attr(&py_mod, "close", ctx.new_rustfunc(os_close));
116
ctx.set_attr(&py_mod, "error", ctx.new_rustfunc(os_error));
0 commit comments