Skip to content

Commit a3dc98d

Browse files
committed
Add empty _imp._fix_co_filename
1 parent 3c54494 commit a3dc98d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

vm/src/stdlib/imp.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ fn imp_is_frozen_package(_name: PyStringRef, _vm: &VirtualMachine) -> bool {
7777
false
7878
}
7979

80+
fn imp_fix_co_filename(_code: PyObjectRef, _path: PyStringRef, _vm: &VirtualMachine) {
81+
// TODO:
82+
}
83+
8084
pub fn make_module(vm: &VirtualMachine) -> PyObjectRef {
8185
let ctx = &vm.ctx;
8286
let module = py_module!(vm, "_imp", {
@@ -91,6 +95,7 @@ pub fn make_module(vm: &VirtualMachine) -> PyObjectRef {
9195
"get_frozen_object" => ctx.new_rustfunc(imp_get_frozen_object),
9296
"init_frozen" => ctx.new_rustfunc(imp_init_frozen),
9397
"is_frozen_package" => ctx.new_rustfunc(imp_is_frozen_package),
98+
"_fix_co_filename" => ctx.new_rustfunc(imp_fix_co_filename),
9499
});
95100

96101
module

0 commit comments

Comments
 (0)