misc: fix consider-using-max-builtin pylint error (#55505)

This commit is contained in:
Lauréline Guérin 2021-07-09 16:41:33 +02:00
parent 25da6b2a74
commit 0424972fcf
No known key found for this signature in database
GPG Key ID: 1FAB9B9B4F93D473
1 changed files with 3 additions and 4 deletions

View File

@ -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: