8000 Remove unused varg part of Error calls. · urish/circuitpython@c6f2dae · GitHub
[go: up one dir, main page]

Skip to content

Commit c6f2dae

Browse files
Remove unused varg part of Error calls.
1 parent 1f44691 commit c6f2dae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

shared-module/vectorio/Polygon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ static void _clobber_points_list(vectorio_polygon_t *self, mp_obj_t points_tuple
2222
VECTORIO_POLYGON_DEBUG(" self.len: %d, len: %d, ", self->len, len);
2323

2424
if (len < 3) {
25-
mp_raise_TypeError_varg(translate("Polygon needs at least 3 points"));
25+
mp_raise_TypeError(translate("Polygon needs at least 3 points"));
2626
}
2727

2828
if (self->len < 2 * len) {

shared-module/vectorio/VectorShape.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ void common_hal_vectorio_vector_shape_set_location(vectorio_vector_shape_t *self
230230
mp_obj_t *tuple_items;
231231
mp_obj_tuple_get(xy, &tuple_len, &tuple_items);
232232
if (tuple_len != 2) {
233-
mp_raise_TypeError_varg(translate("(x,y) integers required"));
233+
mp_raise_TypeError(translate("(x,y) integers required"));
234234
}
235235

236236
mp_int_t x;

0 commit comments

Comments
 (0)
0