Skip to content

Commit f64a3e2

Browse files
committed
py/lexer: Remove obsolete comment, since lexer can now raise exceptions.
1 parent 60656ea commit f64a3e2

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

py/lexer.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ STATIC void next_char(mp_lexer_t *lex) {
159159

160160
STATIC void indent_push(mp_lexer_t *lex, size_t indent) {
161161
if (lex->num_indent_level >= lex->alloc_indent_level) {
162-
// TODO use m_renew_maybe and somehow indicate an error if it fails... probably by using MP_TOKEN_MEMORY_ERROR
163162
lex->indent_level = m_renew(uint16_t, lex->indent_level, lex->alloc_indent_level, lex->alloc_indent_level + MICROPY_ALLOC_LEXEL_INDENT_INC);
164163
lex->alloc_indent_level += MICROPY_ALLOC_LEXEL_INDENT_INC;
165164
}

0 commit comments

Comments
 (0)