proto: Use %q format-string shortcut

crypto-aes
Jeff Epler 3 years ago
parent e2f319fc6b
commit 49a547eed8
  1. 4
      py/proto.c

@ -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);
}

Loading…
Cancel
Save