Break long line
This commit is contained in:
parent
89f279462e
commit
5cde3ab3b9
1 changed files with 5 additions and 1 deletions
6
day05.py
6
day05.py
|
@ -16,7 +16,11 @@ def parse_map(input):
|
|||
def transform_ranges(map, ranges):
|
||||
for start, length in ranges:
|
||||
# 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
|
||||
src_end = src_start + len
|
||||
|
|
Loading…
Reference in a new issue