lab.nexedi.com will be down from Thursday, 20 March 2025, 07:30:00 UTC for a duration of approximately 2 hours

Commit 5e4a7e6f authored by Michael Tremer's avatar Michael Tremer

importer: Return the last block, too

Fixes: #12427
Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent 18775646
......@@ -211,6 +211,10 @@ def iterate_over_blocks(f, charsets=("utf-8", "latin1")):
# Reset the block
block = []
# Return the last block
if block:
yield block
def iterate_over_lines(f):
for line in f:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment