kwarg_names should explicitly be strings so unwrap them directly

This commit is contained in:
Daniel Watkins
2018-08-31 16:52:04 -04:00
parent e69d4542da
commit 4333ce07ef

View File

@@ -894,7 +894,7 @@ impl VirtualMachine {
.to_vec()
.unwrap()
.iter()
.map(|pyobj| pyobj.to_str().unwrap())
.map(|pyobj| objstr::get_value(pyobj))
.collect();
let args = PyFuncArgs::new(args, kwarg_names);
let func_ref = self.pop_value();