Remove unused varg part of Error calls.

This commit is contained in:
James Carr 2021-09-10 09:34:20 +01:00
parent 1f446916c3
commit c6f2dae591
No known key found for this signature in database
GPG Key ID: 04CEE584D0B924E0
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ static void _clobber_points_list(vectorio_polygon_t *self, mp_obj_t points_tuple
VECTORIO_POLYGON_DEBUG(" self.len: %d, len: %d, ", self->len, len);
if (len < 3) {
mp_raise_TypeError_varg(translate("Polygon needs at least 3 points"));
mp_raise_TypeError(translate("Polygon needs at least 3 points"));
}
if (self->len < 2 * len) {

View File

@ -230,7 +230,7 @@ void common_hal_vectorio_vector_shape_set_location(vectorio_vector_shape_t *self
mp_obj_t *tuple_items;
mp_obj_tuple_get(xy, &tuple_len, &tuple_items);
if (tuple_len != 2) {
mp_raise_TypeError_varg(translate("(x,y) integers required"));
mp_raise_TypeError(translate("(x,y) integers required"));
}
mp_int_t x;