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_