diff options
author | Damien George <damien.p.george@gmail.com> | 2016-04-14 15:22:36 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-04-14 15:22:36 +0100 |
commit | a649d726063d548bbf5f05aef8c4420ddf0cfe6e (patch) | |
tree | 48aefc2bc3df6caccf869c96a8c21f9819e46f9e /py/objstr.c | |
parent | 2243d68345cc3446b26c792c1424c81bcf858216 (diff) | |
download | micropython-a649d726063d548bbf5f05aef8c4420ddf0cfe6e.tar.gz micropython-a649d726063d548bbf5f05aef8c4420ddf0cfe6e.zip |
py/makeqstrdata: Add special case to handle \n qstr.
Diffstat (limited to 'py/objstr.c')
-rw-r--r-- | py/objstr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objstr.c b/py/objstr.c index 0c2d904035..d0d090b995 100644 --- a/py/objstr.c +++ b/py/objstr.c @@ -564,7 +564,7 @@ STATIC mp_obj_t str_splitlines(size_t n_args, const mp_obj_t *pos_args, mp_map_t mp_arg_parse_all(n_args - 1, pos_args + 1, kw_args, MP_ARRAY_SIZE(allowed_args), allowed_args, (mp_arg_val_t*)&args); - mp_obj_t new_args[2] = {pos_args[0], MP_OBJ_NEW_QSTR(MP_QSTR__backslash_n)}; + mp_obj_t new_args[2] = {pos_args[0], MP_OBJ_NEW_QSTR(MP_QSTR__0x0a_)}; return str_split_internal(2, new_args, SPLITLINES | (args.keepends.u_bool ? KEEP : 0)); } #endif |