From 8b309daecc4c0997441ade22bd25f4a56f1b5e6e Mon Sep 17 00:00:00 2001 From: Fumito Hamamura Date: Sat, 2 Nov 2024 15:30:45 +0900 Subject: [PATCH] FAC: Remove enumerate in serializer --- modelx/serialize/serializer_6.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modelx/serialize/serializer_6.py b/modelx/serialize/serializer_6.py index 599da89..3be4f40 100644 --- a/modelx/serialize/serializer_6.py +++ b/modelx/serialize/serializer_6.py @@ -951,7 +951,7 @@ def parse_source(self, path_, obj: Interface): srcstructure = SourceStructure(src) atok = asttokens.ASTTokens(src, parse=True) - for i, stmt in enumerate(atok.tree.body): + for stmt in atok.tree.body: sec = srcstructure.get_section(stmt.lineno) parser = ParserSelector.select(stmt, sec, atok)( stmt, atok, self, sec, obj, srcpath=path_