hgext/fastannotate/revmap.py
changeset 49284 d44e3c45f0e4
parent 48946 642e31cb55f0
child 51863 f4733654f144
--- a/hgext/fastannotate/revmap.py	Sun May 29 12:38:54 2022 +0200
+++ b/hgext/fastannotate/revmap.py	Sun May 29 15:17:27 2022 +0200
@@ -15,7 +15,6 @@
 from mercurial.pycompat import open
 from mercurial import (
     error as hgerror,
-    pycompat,
 )
 from . import error
 
@@ -165,13 +164,11 @@
         if self._lastmaxrev == -1:  # write the entire file
             with open(self.path, b'wb') as f:
                 f.write(self.HEADER)
-                for i in pycompat.xrange(1, len(self._rev2hsh)):
+                for i in range(1, len(self._rev2hsh)):
                     self._writerev(i, f)
         else:  # append incrementally
             with open(self.path, b'ab') as f:
-                for i in pycompat.xrange(
-                    self._lastmaxrev + 1, len(self._rev2hsh)
-                ):
+                for i in range(self._lastmaxrev + 1, len(self._rev2hsh)):
                     self._writerev(i, f)
         self._lastmaxrev = self.maxrev