# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2018-02-18 19:01:01 # Node ID 3496bffe266d735565e7800a1e0b08048fcc3f75 # Parent a8bca9d0cea073cced6a5bfa03b0ae9a9af2feba py3: make sure we are doing integer division by using '//' Differential Revision: https://phab.mercurial-scm.org/D2337 diff --git a/mercurial/crecord.py b/mercurial/crecord.py --- a/mercurial/crecord.py +++ b/mercurial/crecord.py @@ -1335,7 +1335,7 @@ class curseschunkselector(object): # temporarily disable printing to windows by printstring patchdisplaystring = self.printitem(item, ignorefolding, recursechildren, towin=False) - numlines = len(patchdisplaystring) / self.xscreensize + numlines = len(patchdisplaystring) // self.xscreensize return numlines def sigwinchhandler(self, n, frame):