Skip to content

Commit

Permalink
Remove redundant call to enumerate()
Browse files Browse the repository at this point in the history
  • Loading branch information
lelit committed Jan 10, 2024
1 parent c3bad21 commit d8ae15b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/extract_enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def write_enum_doc(name, enum, output, toc, url, mod_name):
if name in toc:
output.write('\n Corresponds to the `%s enum <%s#L%d>`__.\n' %
(name, url, toc[name]))
for index, item in enumerate(enum.values.enumerators):
for item in enum.values.enumerators:
output.write('\n .. data:: %s\n' % item.name)


Expand Down

0 comments on commit d8ae15b

Please sign in to comment.