Skip to content

Commit

Permalink
Apply pyupgrade suggestions (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos authored Aug 14, 2023
1 parent 174542b commit 55933aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions benchmarks/timedruns.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@

def _load_data(name):
with open("./testdata/{}.csv".format(name), **open_kwargs) as f:
for data in csv.reader(f):
yield data
yield from csv.reader(f)


def _load_n(name, n):
Expand Down
3 changes: 1 addition & 2 deletions tests/test_jellyfish.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ def jf(request):

def _load_data(name):
with open("testdata/{}.csv".format(name), **open_kwargs) as f:
for data in csv.reader(f):
yield data
yield from csv.reader(f)


@pytest.mark.parametrize("s1,s2,value", _load_data("jaro_winkler"), ids=str)
Expand Down

0 comments on commit 55933aa

Please sign in to comment.