hgext3rd/evolve/stablesort.py
changeset 4806 44629ae21b84
parent 4804 079dbf36e884
child 4814 48b30ff742cb
--- a/hgext3rd/evolve/stablesort.py	Tue Aug 06 11:29:35 2019 +0200
+++ b/hgext3rd/evolve/stablesort.py	Tue Aug 06 11:30:45 2019 +0200
@@ -525,8 +525,8 @@
 
     def __init__(self):
         super(ondiskstablesortcache, self).__init__()
-        self._index = array.array('l')
-        self._data = array.array('l')
+        self._index = array.array(r'l')
+        self._data = array.array(r'l')
         del self._jumps
 
     def getjumps(self, repo, rev):
@@ -601,8 +601,8 @@
 
     def clear(self, reset=False):
         super(ondiskstablesortcache, self).clear()
-        self._index = array.array('l')
-        self._data = array.array('l')
+        self._index = array.array(r'l')
+        self._data = array.array(r'l')
 
     def load(self, repo):
         """load data from disk
@@ -612,8 +612,8 @@
         assert repo.filtername is None
 
         data = repo.cachevfs.tryread(self._filepath)
-        self._index = array.array('l')
-        self._data = array.array('l')
+        self._index = array.array(r'l')
+        self._data = array.array(r'l')
         if not data:
             self._cachekey = self.emptykey
         else: