changeset 38848 | c0d411ea6639 |
parent 38847 | f3d394ea17db |
child 38850 | 6104b203bec8 |
--- a/mercurial/pure/parsers.py Fri Jul 20 09:53:54 2018 -0700 +++ b/mercurial/pure/parsers.py Fri Jul 20 10:02:05 2018 -0700 @@ -48,8 +48,6 @@ def _fix_index(self, i): if not isinstance(i, int): raise TypeError("expecting int indexes") - if i < 0: - i = len(self) + i if i < 0 or i >= len(self): raise IndexError return i