Break long line

This commit is contained in:
Sijmen 2023-12-06 01:37:59 +01:00
parent 89f279462e
commit 5cde3ab3b9

View file

@ -16,7 +16,11 @@ def parse_map(input):
def transform_ranges(map, ranges): def transform_ranges(map, ranges):
for start, length in ranges: for start, length in ranges:
# find the start of the range # find the start of the range
(dst_start, src_start, len) = next((dst, src, len) for (dst, src, len) in map if src <= start < (src + len)) (dst_start, src_start, len) = next(
(dst, src, len)
for (dst, src, len) in map
if src <= start < (src + len)
)
end = start + length end = start + length
src_end = src_start + len src_end = src_start + len