mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
formatter.py: Remove enumerate() function in for condition
This commit is contained in:
parent
1addc89f83
commit
cf8615eb35
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ class Format:
|
||||||
tokens = tokenizer.tokenize(data)
|
tokens = tokenizer.tokenize(data)
|
||||||
tokenized_str = ""
|
tokenized_str = ""
|
||||||
|
|
||||||
for index, item in enumerate(tokens):
|
for item in tokens:
|
||||||
if item.type != tokenizer.TokenType.WHITESPACE:
|
if item.type != tokenizer.TokenType.WHITESPACE:
|
||||||
if str(item) in OPENING_TOKENS:
|
if str(item) in OPENING_TOKENS:
|
||||||
indent_levels += 1
|
indent_levels += 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue