diff options
author | Damien George <damien.p.george@gmail.com> | 2014-01-15 22:39:03 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-01-15 22:39:03 +0000 |
commit | 4899ff9470734f0593bbe1f5272bc3d23facf7f7 (patch) | |
tree | 929b1674e445726b50e3ff2acc1e5706e9b8f5ea /py/objlist.c | |
parent | 7a9d0c454076b6524f3f6f5af9a6b28bc35da2f9 (diff) | |
parent | 36c4499d36a36ab3e1a68545e613bce61fb15f3c (diff) |
Merge branch 'str-repr' of github.com:pfalcon/micropython into pfalcon-str-repr
Conflicts:
tests/basics/tests/exception1.py
Diffstat (limited to 'py/objlist.c')
-rw-r--r-- | py/objlist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/objlist.c b/py/objlist.c index 100a02f3c..829677b43 100644 --- a/py/objlist.c +++ b/py/objlist.c @@ -26,14 +26,14 @@ static mp_obj_t list_extend(mp_obj_t self_in, mp_obj_t arg_in); /******************************************************************************/ /* list */ -static void list_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t o_in) { +static void list_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t o_in, mp_print_kind_t kind) { mp_obj_list_t *o = o_in; print(env, "["); for (int i = 0; i < o->len; i++) { if (i > 0) { print(env, ", "); } - mp_obj_print_helper(print, env, o->items[i]); + mp_obj_print_helper(print, env, o->items[i], PRINT_REPR); } print(env, "]"); } |