changeset 49292 | d44e3c45f0e4 |
parent 49095 | 75794847ef62 |
child 49724 | bbbb5213d043 |
--- a/mercurial/utils/stringutil.py Sun May 29 12:38:54 2022 +0200 +++ b/mercurial/utils/stringutil.py Sun May 29 15:17:27 2022 +0200 @@ -750,7 +750,7 @@ def _cutdown(self, ucstr, space_left): l = 0 colwidth = encoding.ucolwidth - for i in pycompat.xrange(len(ucstr)): + for i in range(len(ucstr)): l += colwidth(ucstr[i]) if space_left < l: return (ucstr[:i], ucstr[i:])