Skip to content

Commit 49a547e

Browse files
committed
proto: Use %q format-string shortcut
1 parent e2f319f commit 49a547e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

py/proto.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ const void *mp_proto_get_or_throw(uint16_t name, mp_const_obj_t obj) {
4545
if (proto) {
4646
return proto;
4747
}
48-
mp_raise_TypeError_varg(translate("'%s' object does not support '%s'"),
49-
mp_obj_get_type_str(obj), qstr_str(name));
48+
mp_raise_TypeError_varg(translate("'%s' object does not support '%q'"),
49+
mp_obj_get_type_str(obj), name);
5050
}

0 commit comments

Comments
 (0)