##// END OF EJS Templates
py3: use integer division instead of `int(...)` call...
Boris Feld -
r41668:eb37d95c default
parent child Browse files
Show More
@@ -242,8 +242,8 b' class datapack(basepack.basepack):'
242 entry = index[end:end + entrylen]
242 entry = index[end:end + entrylen]
243 else:
243 else:
244 while start < end - entrylen:
244 while start < end - entrylen:
245 mid = start + (end - start) / 2
245 mid = start + (end - start) // 2
246 mid = int(mid - ((mid - params.indexstart) % entrylen))
246 mid = mid - ((mid - params.indexstart) % entrylen)
247 midnode = index[mid:mid + NODELENGTH]
247 midnode = index[mid:mid + NODELENGTH]
248 if midnode == node:
248 if midnode == node:
249 entry = index[mid:mid + entrylen]
249 entry = index[mid:mid + entrylen]
@@ -292,7 +292,7 b' class datapacktestsbase(object):'
292
292
293 class testdatapackstore(datapack.datapackstore):
293 class testdatapackstore(datapack.datapackstore):
294 # Ensures that we are not keeping everything in the cache.
294 # Ensures that we are not keeping everything in the cache.
295 DEFAULTCACHESIZE = int(numpacks / 2)
295 DEFAULTCACHESIZE = numpacks // 2
296
296
297 store = testdatapackstore(uimod.ui(), packdir)
297 store = testdatapackstore(uimod.ui(), packdir)
298
298
General Comments 0
You need to be logged in to leave comments. Login now