From 044c473de203b4dbe93874813b430fb6336db2b2 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 11 Apr 2015 13:03:37 +0100 Subject: py: Add %q format support to mp_[v]printf, and use it. --- py/builtinimport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py/builtinimport.c') diff --git a/py/builtinimport.c b/py/builtinimport.c index d92cff63d..5cab1d59b 100644 --- a/py/builtinimport.c +++ b/py/builtinimport.c @@ -319,7 +319,7 @@ mp_obj_t mp_builtin___import__(mp_uint_t n_args, const mp_obj_t *args) { nlr_raise(mp_obj_new_exception_msg(&mp_type_ImportError, "module not found")); } else { nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_ImportError, - "no module named '%s'", qstr_str(mod_name))); + "no module named '%q'", mod_name)); } } } else { -- cgit v1.2.3