summaryrefslogtreecommitdiff
path: root/shared-bindings
diff options
context:
space:
mode:
authorJeff Epler <jepler@gmail.com>2020-08-04 10:59:31 -0500
committerJeff Epler <jepler@gmail.com>2020-08-04 14:45:45 -0500
commitc37a25f0e5d1c877909855f6a3294e43b854bbbd (patch)
tree14c0cae44c69847fd94504f110f1ebc86883031c /shared-bindings
parent92917b84f1a173a06d337d82a7a5568f680ff268 (diff)
Use qstrs to save an additional 4 bytes
Diffstat (limited to 'shared-bindings')
-rw-r--r--shared-bindings/i2cperipheral/I2CPeripheral.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-bindings/i2cperipheral/I2CPeripheral.c b/shared-bindings/i2cperipheral/I2CPeripheral.c
index 39f787062..dfc58cd24 100644
--- a/shared-bindings/i2cperipheral/I2CPeripheral.c
+++ b/shared-bindings/i2cperipheral/I2CPeripheral.c
@@ -86,7 +86,7 @@ STATIC mp_obj_t i2cperipheral_i2c_peripheral_make_new(const mp_obj_type_t *type,
while ((item = mp_iternext(iterable)) != MP_OBJ_STOP_ITERATION) {
mp_int_t value;
if (!mp_obj_get_int_maybe(item, &value)) {
- mp_raise_TypeError_varg(translate("can't convert %s to %s"), "address", "int");
+ mp_raise_TypeError_varg(translate("can't convert %q to %q"), MP_QSTR_address, MP_QSTR_int);
}
if (value < 0x00 || value > 0x7f) {
mp_raise_ValueError(translate("address out of bounds"));