From acbca4451253d71645669a2137260d1fefaf5ac6 Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Wed, 6 Sep 2017 17:15:47 -0400 Subject: Ctrl-C was causing a soft-reset in REPL. Also allow an immediate ctrl-c in `input()`. --- lib/utils/pyexec.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'lib') diff --git a/lib/utils/pyexec.c b/lib/utils/pyexec.c index fc04e3f9f..d95084624 100644 --- a/lib/utils/pyexec.c +++ b/lib/utils/pyexec.c @@ -121,9 +121,6 @@ STATIC int parse_compile_execute(const void *source, mp_parse_input_kind_t input } else { mp_obj_print_exception(&mp_plat_print, (mp_obj_t)nlr.ret_val); ret = PYEXEC_EXCEPTION; - if (mp_obj_is_subclass_fast(mp_obj_get_type((mp_obj_t)nlr.ret_val), &mp_type_KeyboardInterrupt)) { - ret = PYEXEC_FORCED_EXIT; - } } } if (result != NULL) { -- cgit v1.2.3