Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
boazhaim authored and Miryam-Schwartz committed Dec 4, 2024
1 parent a1dc874 commit 7c6e56c
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,14 @@ def __init__(
def _remove_empty_lines_from_csv(input_file):
temp_file = input_file + ".temp"

with open(
with (
open(
input_file, "r", newline="", encoding=DataConstants.UTF8ENCODING
) as infile, open(
) as infile,
open(
temp_file, "w", newline="", encoding=DataConstants.UTF8ENCODING
) as outfile:
) as outfile,
):
reader = csv.reader(infile)
writer = csv.writer(outfile)

Expand Down

0 comments on commit 7c6e56c

Please sign in to comment.