summaryrefslogtreecommitdiff
path: root/py/builtinevex.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/builtinevex.c')
-rw-r--r--py/builtinevex.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/py/builtinevex.c b/py/builtinevex.c
index 819e3e1c6..a4bf7d924 100644
--- a/py/builtinevex.c
+++ b/py/builtinevex.c
@@ -90,9 +90,15 @@ STATIC mp_obj_t mp_builtin_compile(size_t n_args, const mp_obj_t *args) {
qstr mode = mp_obj_str_get_qstr(args[2]);
mp_parse_input_kind_t parse_input_kind;
switch (mode) {
- case MP_QSTR_single: parse_input_kind = MP_PARSE_SINGLE_INPUT; break;
- case MP_QSTR_exec: parse_input_kind = MP_PARSE_FILE_INPUT; break;
- case MP_QSTR_eval: parse_input_kind = MP_PARSE_EVAL_INPUT; break;
+ case MP_QSTR_single:
+ parse_input_kind = MP_PARSE_SINGLE_INPUT;
+ break;
+ case MP_QSTR_exec:
+ parse_input_kind = MP_PARSE_FILE_INPUT;
+ break;
+ case MP_QSTR_eval:
+ parse_input_kind = MP_PARSE_EVAL_INPUT;
+ break;
default:
mp_raise_ValueError("bad compile mode");
}