Skip to content

Commit 00a3a25

Browse files
committed
revert error to avoid translation changes
1 parent e73dba2 commit 00a3a25

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

locale/circuitpython.pot

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: PACKAGE VERSION\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2020-08-04 18:42-0500\n"
11+
"POT-Creation-Date: 2020-08-08 18:40-0400\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -1942,6 +1942,7 @@ msgid "can't assign to expression"
19421942
msgstr ""
19431943

19441944
#: py/obj.c py/objint.c shared-bindings/i2cperipheral/I2CPeripheral.c
1945+
#: shared-module/_pixelbuf/PixelBuf.c
19451946
msgid "can't convert %q to %q"
19461947
msgstr ""
19471948

@@ -3139,10 +3140,6 @@ msgstr ""
31393140
msgid "tuple/list has wrong length"
31403141
msgstr ""
31413142

3142-
#: shared-bindings/_pixelbuf/PixelBuf.c
3143-
msgid "tuple/list required on RHS"
3144-
msgstr ""
3145-
31463143
#: ports/atmel-samd/common-hal/busio/UART.c ports/nrf/common-hal/busio/UART.c
31473144
#: shared-bindings/busio/UART.c
31483145
msgid "tx and rx cannot both be None"

shared-bindings/_pixelbuf/PixelBuf.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,9 +333,7 @@ STATIC mp_obj_t pixelbuf_pixelbuf_subscr(mp_obj_t self_in, mp_obj_t index_in, mp
333333
size_t num_items = mp_obj_get_int(mp_obj_len(value));
334334

335335
if (num_items != slice_len && num_items != (slice_len * common_hal__pixelbuf_pixelbuf_get_bpp(self_in))) {
336-
mp_raise_ValueError_varg(translate("Unmatched number of items on RHS (expected %d or %d, got %d)."),
337-
slice_len, slice_len * common_hal__pixelbuf_pixelbuf_get_bpp(self_in),
338-
num_items);
336+
mp_raise_ValueError_varg(translate("Unmatched number of items on RHS (expected %d, got %d)."), slice_len, num_items);
339337
}
340338

341339
common_hal__pixelbuf_pixelbuf_set_pixels(self_in, slice.start, slice.step, slice_len, value, num_items != slice_len);

0 commit comments

Comments
 (0)