diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2019-01-14 15:14:40 -0800 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2019-01-14 17:29:19 -0800 |
| commit | 72d993d60c5e5238942491df00776ca31f9758a1 (patch) | |
| tree | 7dc8ff9548dc5c5fe4286414eb361c61b0774306 /py/objzip.c | |
| parent | 619bc4caae15ceb7b6de547a5264c9eca9086fe9 (diff) | |
py changes for supporting superclass constructors that take kwargs
Diffstat (limited to 'py/objzip.c')
| -rw-r--r-- | py/objzip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/objzip.c b/py/objzip.c index 0183925e3..ce9afd55d 100644 --- a/py/objzip.c +++ b/py/objzip.c @@ -36,8 +36,8 @@ typedef struct _mp_obj_zip_t { mp_obj_t iters[]; } mp_obj_zip_t; -STATIC mp_obj_t zip_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *args) { - mp_arg_check_num(n_args, n_kw, 0, MP_OBJ_FUN_ARGS_MAX, false); +STATIC mp_obj_t zip_make_new(const mp_obj_type_t *type, size_t n_args, const mp_obj_t *args, mp_map_t *kw_args) { + mp_arg_check_num(n_args, kw_args, 0, MP_OBJ_FUN_ARGS_MAX, false); mp_obj_zip_t *o = m_new_obj_var(mp_obj_zip_t, mp_obj_t, n_args); o->base.type = type; |
