Mercurial > public > mercurial-scm > hg-stable
diff mercurial/loggingutil.py @ 49292:d44e3c45f0e4
py3: replace `pycompat.xrange` by `range`
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Sun, 29 May 2022 15:17:27 +0200 |
parents | 642e31cb55f0 |
children | f4733654f144 |
line wrap: on
line diff
--- 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),