Skip to content

Commit

Permalink
FAC: Remove enumerate in serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
fumitoh committed Nov 2, 2024
1 parent abc5f5d commit 8b309da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modelx/serialize/serializer_6.py
Original file line number Diff line number Diff line change
Expand Up @@ -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_
Expand Down

0 comments on commit 8b309da

Please sign in to comment.