changeset 11497:f5a8d85df06a

revlog: Marked classic int divisions as such.
author Renato Cunha <renatoc@gmail.com>
date Thu, 01 Jul 2010 19:27:02 -0300
parents 52762189c382
children 8fa85378c527
files mercurial/revlog.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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: