summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--py/repl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/repl.c b/py/repl.c
index 473313c1ef..412ab20081 100644
--- a/py/repl.c
+++ b/py/repl.c
@@ -20,7 +20,7 @@ bool mp_repl_is_compound_stmt(const char *line) {
str_startswith_word(line, "if")
|| str_startswith_word(line, "while")
|| str_startswith_word(line, "for")
- || str_startswith_word(line, "true")
+ || str_startswith_word(line, "try")
|| str_startswith_word(line, "with")
|| str_startswith_word(line, "def")
|| str_startswith_word(line, "class")