diff options
author | Damien George <damien.p.george@gmail.com> | 2014-02-12 23:02:19 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-02-12 23:02:19 +0000 |
commit | 099a9cb575b254dd9e00fd1c60859aec7299deb7 (patch) | |
tree | 9e5fd851076515e760ad84439c9360ee9410722b /py/objgenerator.c | |
parent | 780ba22bb8d4451761952a5401cb15935c8eb4fb (diff) | |
download | micropython-099a9cb575b254dd9e00fd1c60859aec7299deb7.tar.gz micropython-099a9cb575b254dd9e00fd1c60859aec7299deb7.zip |
Remove mp_obj_new_exception_msg_1_arg and _2_arg.
Diffstat (limited to 'py/objgenerator.c')
-rw-r--r-- | py/objgenerator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objgenerator.c b/py/objgenerator.c index db61c0846c..dff4ade749 100644 --- a/py/objgenerator.c +++ b/py/objgenerator.c @@ -28,7 +28,7 @@ STATIC mp_obj_t gen_wrap_call(mp_obj_t self_in, uint n_args, uint n_kw, const mp const byte *bc_code; mp_obj_fun_bc_get(self_fun, &bc_n_args, &bc_n_state, &bc_code); if (n_args != bc_n_args) { - nlr_jump(mp_obj_new_exception_msg_2_args(MP_QSTR_TypeError, "function takes %d positional arguments but %d were given", (const char*)(machine_int_t)bc_n_args, (const char*)(machine_int_t)n_args)); + nlr_jump(mp_obj_new_exception_msg_varg(MP_QSTR_TypeError, "function takes %d positional arguments but %d were given", bc_n_args, n_args)); } if (n_kw != 0) { nlr_jump(mp_obj_new_exception_msg(MP_QSTR_TypeError, "function does not take keyword arguments")); |