Skip to content

Commit

Permalink
Merge pull request #158 from jonafato/pylint-use-yield-from
Browse files Browse the repository at this point in the history
Update a yield statement loop to a yield from statement
  • Loading branch information
awdeorio authored Mar 8, 2024
2 parents d64a637 + 65e2225 commit 349a192
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mailmerge/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,7 @@ def read_csv_database(database_path):
csvdialect.strict = True
reader = csv.DictReader(database_file, dialect=csvdialect)
try:
for row in reader:
yield row
yield from reader
except csv.Error as err:
raise exceptions.MailmergeError(
f"{database_path}:{reader.line_num}: {err}"
Expand Down

0 comments on commit 349a192

Please sign in to comment.