summaryrefslogtreecommitdiffstatshomepage
path: root/py/objset.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-01-13 19:19:16 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-01-15 02:15:38 +0200
commit76d982ef343dcadd35355aed9c568984c850fb7b (patch)
tree1ded5f199ce740d3b72c00cc1e9c2b402936632f /py/objset.c
parent24224d7c72e1d6572ef0d24f08eb882dcac8dc50 (diff)
downloadmicropython-76d982ef343dcadd35355aed9c568984c850fb7b.tar.gz
micropython-76d982ef343dcadd35355aed9c568984c850fb7b.zip
type->print(): Distinguish str() and repr() variety by passing extra param.
Diffstat (limited to 'py/objset.c')
-rw-r--r--py/objset.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/objset.c b/py/objset.c
index ba083ada8a..6ea6d62d8f 100644
--- a/py/objset.c
+++ b/py/objset.c
@@ -25,7 +25,7 @@ typedef struct _mp_obj_set_it_t {
static mp_obj_t set_it_iternext(mp_obj_t self_in);
-void set_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in) {
+void set_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in, mp_print_kind_t kind) {
mp_obj_set_t *self = self_in;
if (self->set.used == 0) {
print(env, "set()");
@@ -39,7 +39,7 @@ void set_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj
print(env, ", ");
}
first = false;
- mp_obj_print_helper(print, env, self->set.table[i]);
+ mp_obj_print_helper(print, env, self->set.table[i], PRINT_REPR);
}
}
print(env, "}");