summaryrefslogtreecommitdiff
path: root/py/objnone.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/objnone.c')
-rw-r--r--py/objnone.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/py/objnone.c b/py/objnone.c
index 523158d00..d47452bb4 100644
--- a/py/objnone.c
+++ b/py/objnone.c
@@ -34,12 +34,12 @@ typedef struct _mp_obj_none_t {
mp_obj_base_t base;
} mp_obj_none_t;
-STATIC void none_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in, mp_print_kind_t kind) {
+STATIC void none_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) {
(void)self_in;
if (MICROPY_PY_UJSON && kind == PRINT_JSON) {
- print(env, "null");
+ mp_print_str(print, "null");
} else {
- print(env, "None");
+ mp_print_str(print, "None");
}
}