Skip to content

Commit

Permalink
chore: Avoid unnecessary assignment before for-loop
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Sep 28, 2024
1 parent 6886c8f commit 08bbd60
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions extension_explorer/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

def extract_tag(fileobj, keywords, comment_tags, options):
"""Yield the title values in the YAML file."""
data = safe_load(fileobj)
for prefix, tags in data.items():
for prefix, tags in safe_load(fileobj).items():
for i, tag in enumerate(tags):
yield 1, '', tag['title'], [f'/{prefix}/{i}/title']

0 comments on commit 08bbd60

Please sign in to comment.