changeset 49284 | d44e3c45f0e4 |
parent 48946 | 642e31cb55f0 |
child 51859 | f4733654f144 |
--- a/mercurial/loggingutil.py Sun May 29 12:38:54 2022 +0200 +++ b/mercurial/loggingutil.py Sun May 29 15:17:27 2022 +0200 @@ -11,7 +11,6 @@ from . import ( encoding, - pycompat, ) from .utils import ( @@ -54,7 +53,7 @@ else: if st.st_size >= maxsize: path = vfs.join(name) - for i in pycompat.xrange(maxfiles - 1, 1, -1): + for i in range(maxfiles - 1, 1, -1): rotate( oldpath=b'%s.%d' % (path, i - 1), newpath=b'%s.%d' % (path, i),