From cf8615eb3516440406da8c763f0469762621f8dd Mon Sep 17 00:00:00 2001 From: gregorni Date: Thu, 27 Jul 2023 16:13:05 +0200 Subject: [PATCH] formatter.py: Remove enumerate() function in for condition --- blueprintcompiler/formatter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blueprintcompiler/formatter.py b/blueprintcompiler/formatter.py index 5b87331..db0cad8 100644 --- a/blueprintcompiler/formatter.py +++ b/blueprintcompiler/formatter.py @@ -30,7 +30,7 @@ class Format: tokens = tokenizer.tokenize(data) tokenized_str = "" - for index, item in enumerate(tokens): + for item in tokens: if item.type != tokenizer.TokenType.WHITESPACE: if str(item) in OPENING_TOKENS: indent_levels += 1