misc: fix consider-using-max-builtin pylint error (#55505)
This commit is contained in:
parent
25da6b2a74
commit
0424972fcf
|
@ -100,10 +100,9 @@ class IntervalSet:
|
|||
if previous_begin < begin:
|
||||
# but it does not include it, so replace if begin by previous.begin
|
||||
begin = previous_begin
|
||||
if end < previous_end:
|
||||
# [begin, end] is completely included in previous interval,
|
||||
# replace end by previous.end
|
||||
end = previous_end
|
||||
# [begin, end] is completely included in previous interval,
|
||||
# replace end by previous.end
|
||||
end = max(end, previous_end)
|
||||
break
|
||||
# merge with following
|
||||
while i < len(self.begin) and self.begin[i] <= end:
|
||||
|
|
Loading…
Reference in New Issue