proto: Use %q format-string shortcut

This commit is contained in:
Jeff Epler 2019-12-05 13:06:06 -06:00
parent e2f319fc6b
commit 49a547eed8
1 changed files with 2 additions and 2 deletions

View File

@ -45,6 +45,6 @@ const void *mp_proto_get_or_throw(uint16_t name, mp_const_obj_t obj) {
if (proto) {
return proto;
}
mp_raise_TypeError_varg(translate("'%s' object does not support '%s'"),
mp_obj_get_type_str(obj), qstr_str(name));
mp_raise_TypeError_varg(translate("'%s' object does not support '%q'"),
mp_obj_get_type_str(obj), name);
}