From 4333ce07efd889a8697e5bf9008180fcf5ba4a64 Mon Sep 17 00:00:00 2001 From: Daniel Watkins Date: Fri, 31 Aug 2018 16:52:04 -0400 Subject: [PATCH] kwarg_names should explicitly be strings so unwrap them directly --- vm/src/vm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/src/vm.rs b/vm/src/vm.rs index d3bdad700..7563c5812 100644 --- a/vm/src/vm.rs +++ b/vm/src/vm.rs @@ -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();