revlog: Marked classic int divisions as such.
authorRenato Cunha <renatoc@gmail.com>
Thu, 01 Jul 2010 19:27:02 -0300
changeset 11497 f5a8d85df06a
parent 11496 52762189c382
child 11498 8fa85378c527
revlog: Marked classic int divisions as such.
mercurial/revlog.py
--- a/mercurial/revlog.py	Fri Jul 02 11:41:43 2010 +0200
+++ b/mercurial/revlog.py	Thu Jul 01 19:27:02 2010 -0300
@@ -131,7 +131,7 @@
         self.dataf = dataf
         self.s = struct.calcsize(indexformatng)
         self.datasize = size
-        self.l = size / self.s
+        self.l = size // self.s
         self.index = [None] * self.l
         self.map = {nullid: nullrev}
         self.allmap = 0
@@ -176,8 +176,8 @@
                 # limit blocksize so that we don't get too much data.
                 blocksize = max(self.datasize - blockstart, 0)
             data = self.dataf.read(blocksize)
-        lend = len(data) / self.s
-        i = blockstart / self.s
+        lend = len(data) // self.s
+        i = blockstart // self.s
         off = 0
         # lazyindex supports __delitem__
         if lend > len(self.index) - i: