From f64a3e296e1c696b1c8a09bac68f7e075f419c8b Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 23 Mar 2017 16:40:00 +1100 Subject: [PATCH] py/lexer: Remove obsolete comment, since lexer can now raise exceptions. --- py/lexer.c | 1 - 1 file changed, 1 deletion(-) diff --git a/py/lexer.c b/py/lexer.c index fadaee6f3..a91f5c9c8 100644 --- a/py/lexer.c +++ b/py/lexer.c @@ -159,7 +159,6 @@ STATIC void next_char(mp_lexer_t *lex) { STATIC void indent_push(mp_lexer_t *lex, size_t indent) { if (lex->num_indent_level >= lex->alloc_indent_level) { - // TODO use m_renew_maybe and somehow indicate an error if it fails... probably by using MP_TOKEN_MEMORY_ERROR lex->indent_level = m_renew(uint16_t, lex->indent_level, lex->alloc_indent_level, lex->alloc_indent_level + MICROPY_ALLOC_LEXEL_INDENT_INC); lex->alloc_indent_level += MICROPY_ALLOC_LEXEL_INDENT_INC; }