Projet

Général

Profil

0013-misc-fix-consider-using-max-builtin-pylint-error-555.patch

Lauréline Guérin, 12 juillet 2021 11:24

Télécharger (1,17 ko)

Voir les différences:

Subject: [PATCH 13/23] misc: fix consider-using-max-builtin pylint error
 (#55505)

 chrono/interval.py | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
chrono/interval.py
100 100
            if previous_begin < begin:
101 101
                # but it does not include it, so replace if begin by previous.begin
102 102
                begin = previous_begin
103
                if end < previous_end:
104
                    # [begin, end] is completely included in previous interval,
105
                    # replace end by previous.end
106
                    end = previous_end
103
                # [begin, end] is completely included in previous interval,
104
                # replace end by previous.end
105
                end = max(end, previous_end)
107 106
                break
108 107
        # merge with following
109 108
        while i < len(self.begin) and self.begin[i] <= end:
110
-