diff options
| author | Jeff Epler <jepler@gmail.com> | 2020-08-04 10:59:31 -0500 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2020-08-04 14:45:45 -0500 |
| commit | c37a25f0e5d1c877909855f6a3294e43b854bbbd (patch) | |
| tree | 14c0cae44c69847fd94504f110f1ebc86883031c /shared-bindings | |
| parent | 92917b84f1a173a06d337d82a7a5568f680ff268 (diff) | |
Use qstrs to save an additional 4 bytes
Diffstat (limited to 'shared-bindings')
| -rw-r--r-- | shared-bindings/i2cperipheral/I2CPeripheral.c | 2 |
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")); |
