Read about our upcoming Code of Conduct on this issue

Commit 36645130 authored by Raphaël Gomès's avatar Raphaël Gomès
Browse files

python3: add raw prefix to all array.array() calls

parent 60e8cdce0e9c
......@@ -99,7 +99,7 @@ class depthcache(genericcaches.changelogsourcebase):
def __init__(self):
super(depthcache, self).__init__()
self._data = array.array('l')
self._data = array.array(r'l')
def get(self, rev):
if len(self._data) <= rev:
......@@ -171,7 +171,7 @@ class depthcache(genericcaches.changelogsourcebase):
Subclasses MUST overide this method to actually affect the cache data.
"""
super(depthcache, self).clear()
self._data = array.array('l')
self._data = array.array(r'l')
# crude version of a cache, to show the kind of information we have to store
......@@ -180,7 +180,7 @@ class depthcache(genericcaches.changelogsourcebase):
assert repo.filtername is None
data = repo.cachevfs.tryread(self._filepath)
self._data = array.array('l')
self._data = array.array(r'l')
if not data:
self._cachekey = self.emptykey
else:
......
......@@ -61,7 +61,7 @@ class firstmergecache(genericcaches.changelogsourcebase):
def __init__(self):
super(firstmergecache, self).__init__()
self._data = array.array('l')
self._data = array.array(r'l')
def get(self, rev):
if len(self._data) <= rev:
......@@ -108,7 +108,7 @@ class firstmergecache(genericcaches.changelogsourcebase):
Subclasses MUST overide this method to actually affect the cache data.
"""
super(firstmergecache, self).clear()
self._data = array.array('l')
self._data = array.array(r'l')
# crude version of a cache, to show the kind of information we have to store
......@@ -117,7 +117,7 @@ class firstmergecache(genericcaches.changelogsourcebase):
assert repo.filtername is None
data = repo.cachevfs.tryread(self._filepath)
self._data = array.array('l')
self._data = array.array(r'l')
if not data:
self._cachekey = self.emptykey
else:
......
......@@ -525,8 +525,8 @@ class ondiskstablesortcache(stablesortcache, genericcaches.changelogsourcebase):
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 @@ class ondiskstablesortcache(stablesortcache, genericcaches.changelogsourcebase):
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 @@ class ondiskstablesortcache(stablesortcache, genericcaches.changelogsourcebase):
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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment