Skip to content

Commit 4333ce0

Browse files
committed
kwarg_names should explicitly be strings so unwrap them directly
1 parent e69d454 commit 4333ce0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm/src/vm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ impl VirtualMachine {
894894
.to_vec()
895895
.unwrap()
896896
.iter()
897-
.map(|pyobj| pyobj.to_str().unwrap())
897+
.map(|pyobj| objstr::get_value(pyobj))
898898
.collect();
899899
let args = PyFuncArgs::new(args, kwarg_names);
900900
let func_ref = self.pop_value();

0 commit comments

Comments
 (0)