From b8608bd513d79edc16ca70ba014c8459fa95ac57 Mon Sep 17 00:00:00 2001 From: Daniel Watkins Date: Sun, 5 Aug 2018 10:25:54 -0400 Subject: [PATCH] Fix copy-paste error in str error message --- vm/src/builtins.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/src/builtins.rs b/vm/src/builtins.rs index 7274a1781..6ad54292c 100644 --- a/vm/src/builtins.rs +++ b/vm/src/builtins.rs @@ -216,7 +216,7 @@ fn builtin_str(vm: &mut VirtualMachine, args: PyFuncArgs) -> PyResult { PyObjectKind::String { ref value } => args.args[0].borrow().str(), _ => { return Err(vm.context() - .new_str("TypeError: object of this type has no len()".to_string())) + .new_str("TypeError: object of this type cannot be converted to str".to_string())) }, }; Ok(vm.new_str(s))