merge a message

This commit is contained in:
Jeff Epler 2022-11-08 14:49:01 -06:00
parent 7df21c9ecf
commit ac999098ee
No known key found for this signature in database
GPG Key ID: D5BF15AB975AB4DE
1 changed files with 1 additions and 3 deletions

View File

@ -97,9 +97,7 @@ STATIC mp_obj_t struct_time_make_new(const mp_obj_type_t *type, size_t n_args, s
size_t len;
mp_obj_t *items;
mp_obj_get_array(args[0], &len, &items);
if (len != 9) {
mp_raise_TypeError(translate("time.struct_time() takes a 9-sequence"));
}
mp_arg_validate_length(len, 9, MP_QSTR_value);
return namedtuple_make_new(type, len, 0, items);
}