From ea13f407a392593e7746131952a57bad222ee882 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 5 Apr 2014 18:32:08 +0100 Subject: py: Change nlr_jump to nlr_raise, to aid in debugging. This does not affect code size or performance when debugging turned off. To address issue #420. --- stmhal/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stmhal/input.c') diff --git a/stmhal/input.c b/stmhal/input.c index d704c2cf7..0ded89866 100644 --- a/stmhal/input.c +++ b/stmhal/input.c @@ -14,7 +14,7 @@ STATIC mp_obj_t mp_builtin_input(uint n_args, const mp_obj_t *args) { vstr_init(&line, 16); int ret = readline(&line, ""); if (line.len == 0 && ret == VCP_CHAR_CTRL_D) { - nlr_jump(mp_obj_new_exception(&mp_type_EOFError)); + nlr_raise(mp_obj_new_exception(&mp_type_EOFError)); } mp_obj_t o = mp_obj_new_str((const byte*)line.buf, line.len, false); vstr_clear(&line); -- cgit v1.2.3