summaryrefslogtreecommitdiff
path: root/py/objstr.c
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2022-08-18 15:01:26 +1000
committerJim Mussared <jim.mussared@gmail.com>2023-06-08 17:54:11 +1000
commitf5f9edf6457624bf32e71b0c2fdcfbfa5d5753a6 (patch)
treea8cce3668eed96ebb39abe626c6a8a52d5787f34 /py/objstr.c
parent7f5d5c72718af773db751269c6ae14037b9c0727 (diff)
all: Rename UMODULE to MODULE in preprocessor/Makefile vars.
This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'py/objstr.c')
-rw-r--r--py/objstr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/objstr.c b/py/objstr.c
index e6c5ee71c..b966a7016 100644
--- a/py/objstr.c
+++ b/py/objstr.c
@@ -109,7 +109,7 @@ void mp_str_print_quoted(const mp_print_t *print, const byte *str_data, size_t s
mp_printf(print, "%c", quote_char);
}
-#if MICROPY_PY_UJSON
+#if MICROPY_PY_JSON
void mp_str_print_json(const mp_print_t *print, const byte *str_data, size_t str_len) {
// for JSON spec, see http://www.ietf.org/rfc/rfc4627.txt
// if we are given a valid utf8-encoded string, we will print it in a JSON-conforming way
@@ -137,7 +137,7 @@ void mp_str_print_json(const mp_print_t *print, const byte *str_data, size_t str
STATIC void str_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) {
GET_STR_DATA_LEN(self_in, str_data, str_len);
- #if MICROPY_PY_UJSON
+ #if MICROPY_PY_JSON
if (kind == PRINT_JSON) {
mp_str_print_json(print, str_data, str_len);
return;