Skip to content

Commit

Permalink
CLI: strip input (post-PR fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
adbar committed Jul 3, 2023
1 parent 2699fe6 commit 1a096ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion courlan/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def _batch_lines(inputfile: str) -> Iterator[List[str]]:
"Read input line in batches"
with open(inputfile, "r", encoding="utf-8", errors="ignore") as inputfh:
while True:
batch = list(islice(inputfh, 10**5))
batch = [line.strip() for line in islice(inputfh, 10**5)]
if not batch:
return
yield batch
Expand Down

0 comments on commit 1a096ce

Please sign in to comment.